Skip to content

Conversation

@Joel-hanson
Copy link
Contributor

  • README been reviewed or updated in light of what we are adding to the converter and transformation documentation cards

Description

  • README been updated in light of what we are adding to the converter and transformation documenation cards

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • E2E
  • Unit Test
  • Integration Test

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

- 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]>
Copy link

@gabortpubs gabortpubs left a 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)

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]>
@Joel-hanson Joel-hanson requested a review from gabortpubs January 8, 2025 09:21
Copy link

@gabortpubs gabortpubs left a 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)

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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. |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `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. |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `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>`) |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `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>`) |

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor formatting inconsistency - the first two are single-line whereas the third is an indented bullet

image

Please make all three consistent

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

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)

Copy link
Collaborator

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 :-)

@Joel-hanson Joel-hanson requested a review from dalelane January 14, 2025 06:34
@Joel-hanson Joel-hanson force-pushed the fix-readme branch 3 times, most recently from 5d5c39b to 79d0e76 Compare January 14, 2025 10:01
Signed-off-by: Joel Hanson <[email protected]>
@dalelane dalelane merged commit 7eb0578 into ibm-messaging:main Jan 14, 2025
2 checks passed
@Joel-hanson Joel-hanson deleted the fix-readme branch January 14, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants