[
https://issues.apache.org/jira/browse/NIFI-5113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16452573#comment-16452573
]
Mark Payne commented on NIFI-5113:
----------------------------------
Yeah, that's the biggest issue with dealing with Record and XML. XML has the
notion of "attributes" that just aren't present in Records at this time. "Are
there already any plans to enhance records / schemas by metadata / attributes?"
– yes. I would love to add the notion of "attributes" to Records as well.
Honestly, this has been the biggest hurdle to handling XML to date.
Unfortunately, once we update Records to handle attributes, though, Avro
schemas will still not be sufficient. So I suspect that we will need to have
another local schema registry that is an XSDSchemaRegistry. This would be very
nice anyway because most users who have a lot of XML processing probably
already have XSD schemas, and it would be nice to be able to use those instead
of requiring that they re-write them into Avro schemas.
In the meantime, I think that what you propose is reasonable. Another option
(the one that i would personally go with, I think, but it's up to you) would be
to simply say that for now, the XML Writer does not write attributes.
Everything will be written as an XML element. If you need something to become
an attribute, then you'd have to use an EvaluateXQuery to TransformXML
processor downstream to manipulate the structure and just document this with
examples. Either way, I think this will be helpful but will be a lot more
powerful after adding the notion of Attributes to the Records and adding an
XSDSchemaRegistry.
> Add XML record writer
> ---------------------
>
> Key: NIFI-5113
> URL: https://issues.apache.org/jira/browse/NIFI-5113
> Project: Apache NiFi
> Issue Type: New Feature
> Reporter: Johannes Peter
> Assignee: Johannes Peter
> Priority: Major
>
> Corresponding writer for the XML record reader
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)