-
Notifications
You must be signed in to change notification settings - Fork 6
fix: update readme to have proper wordings #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- README been reviewed or updated in light of what we are adding to the converter and transformation documentation cards Signed-off-by: Joel Hanson <[email protected]>
gabortpubs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added suggestions.
README.md
Outdated
| | `xsd.schema.path` | | Location of a schema file to use to parse the XML string. | | ||
| | `xml.doc.flat.enable` | `false` | Set to `true` if the XML strings contain a single value (e.g. `<root>the message</root>`) | | ||
|
|
||
| Optional configuration that can be set when using the plugin to create XML strings from Connect records (Conect Record -> XML string) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we missing a table from here? If so, the lead-in sentence needs to be updated as well.
Co-authored-by: gabortpubs <[email protected]> Signed-off-by: Joel Hanson <[email protected]>
gabortpubs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Joel-hanson Added a few more comments.
README.md
Outdated
| | `xml.doc.flat.enable` | `false` | Set to `true` if the XML strings contain a single value (e.g. `<root>the message</root>`) | | ||
|
|
||
| Optional configuration that can be set when using the plugin to create XML strings from Connect records (Conect Record -> XML string) | ||
| The following table lists optional configuration that can be set when turning XML strings from Connect records by using the plug-ins (Connect Record to XML string) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this sentence is not quite right, as it states "turning XML strings from Connect records" but misses the bit about "into what".
Also, there's an empty table below which I assume should have some content.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gabortpubs there is a table below this sentence, am I missing or misunderstanding something here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following is the table that we are referencing here. https://github.com/ibm-messaging/kafka-connect-xml-converter/pull/9/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L26-L28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, it wasn't showing the whole file in your PR, and I forgot to click "expand", so I guess this is user error on my part.
README.md
Outdated
| | `xsd.schema.path` | | Location of a schema file to use to parse the XML string. | | ||
| | **Option** | **Default value** | **Notes** | | ||
| | --------------------- | ----------------- | ----------------------------------------------------------------------------------------- | | ||
| | `root.element.name` | `root` | The name of the root element in the XML document being parsed. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | `root.element.name` | `root` | The name of the root element in the XML document being parsed. | | |
| | `root.element.name` | `root` | The name of the root element in the XML document that is being parsed. | |
README.md
Outdated
| | **Option** | **Default value** | **Notes** | | ||
| | --------------------- | ----------------- | ----------------------------------------------------------------------------------------- | | ||
| | `root.element.name` | `root` | The name of the root element in the XML document being parsed. | | ||
| | `xsd.schema.path` | | Location of a schema file to use to parse the XML string. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | `xsd.schema.path` | | Location of a schema file to use to parse the XML string. | | |
| | `xsd.schema.path` | | The location of the schema file to use when parsing the XML string. | |
README.md
Outdated
| | --------------------- | ----------------- | ----------------------------------------------------------------------------------------- | | ||
| | `root.element.name` | `root` | The name of the root element in the XML document being parsed. | | ||
| | `xsd.schema.path` | | Location of a schema file to use to parse the XML string. | | ||
| | `xml.doc.flat.enable` | `false` | Set to `true` if the XML strings contain a single value (e.g. `<root>the message</root>`) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | `xml.doc.flat.enable` | `false` | Set to `true` if the XML strings contain a single value (e.g. `<root>the message</root>`) | | |
| | `xml.doc.flat.enable` | `false` | Set to `true` if the XML strings contain a single value (for example, `<root>the message</root>`) | |
6020771 to
5e9c317
Compare
README.md
Outdated
| A Single Message Transform (SMT) that takes a Kafka Connect record containing an XML string and transforms it into a structured Connect record. | ||
| - `com.ibm.eventstreams.kafkaconnect.plugins.xml.XmlMQRecordBuilder` | ||
| - an MQ Source Record builder for parsing MQ messages containing XML strings | ||
| - An MQ Source Record builder for parsing MQ messages containing XML strings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README.md
Outdated
|
|
||
| - `com.ibm.eventstreams.kafkaconnect.plugins.xml.XmlConverter` | ||
| - a Kafka Connect converter for converting to/from XML strings | ||
| A Kafka Connect converter for converting between Kafka Connect’s internal data format and XML strings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| A Kafka Connect converter for converting between Kafka Connect’s internal data format and XML strings. | |
| A Kafka Connect converter for converting between structured objects (Kafka Connect’s internal data format & Java Maps and Lists) and XML strings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dalelane Minor thing, but can we change the part in brackets to avoid using the ampersand?
(Kafka Connect’s internal data format, and Java Maps and Lists)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fine with me - main thing to pick up was the converter doesn't only support Struct, it works with Map and List as well, but grammar/punctuation-wise I'm agnostic :-)
5e9c317 to
4a621af
Compare
5d5c39b to
79d0e76
Compare
Signed-off-by: Joel Hanson <[email protected]>
79d0e76 to
ed8da4b
Compare

Description
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Checklist