[
https://issues.apache.org/jira/browse/NIFI-4185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16402528#comment-16402528
]
Pierre Villard commented on NIFI-4185:
--------------------------------------
Hi [~jope],
I'm really interested by this work and will be happy to have a look when you
submit a PR. A quick question: are you going to require an XSD schema in your
reader? or will you infer the schema by reading the input XML data? (XSD would
be cool because it allows much more specifications than an Avro schema)
I'm asking because one of the issue if you don't have an XSD is to make a
difference between an array of 1 record (that could be translated into a single
record) and an array of multiple records.
Example: I want the two below inputs
<root>
<record>
<field1>content<field1/>
<record/>
<root/>
and
<root>
<record>
<field1>content<field1/>
<record/>
<record>
<field1>content<field1/>
<record/>
<root/>
to be converted with the same output schema having an array of records.
Does it make sense?
> Add XML record reader & writer services
> ---------------------------------------
>
> Key: NIFI-4185
> URL: https://issues.apache.org/jira/browse/NIFI-4185
> Project: Apache NiFi
> Issue Type: New Feature
> Components: Extensions
> Affects Versions: 1.3.0
> Reporter: Andy LoPresto
> Assignee: Johannes Peter
> Priority: Major
> Labels: json, records, xml
>
> With the addition of the {{RecordReader}} and {{RecordSetWriter}} paradigm,
> XML conversion has not yet been targeted. This will replace the previous
> ticket for XML to JSON conversion.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)