[ 
https://issues.apache.org/jira/browse/NIFI-4185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16444908#comment-16444908
 ] 

ASF GitHub Bot commented on NIFI-4185:
--------------------------------------

Github user JohannesDaniel commented on the issue:

    https://github.com/apache/nifi/pull/2587
  
    @markap14 @pvillard31 
    - I refactored some code as the cases (coerce==true && drop==false) and 
(coerce==false && drop==true) in some cases showed an unexpected behavior
    - Data like <tag>content<subtag>content</subtag>content</tag> now can be 
parsed
    - Maps (e. g. 
<map_field><key1>value1</key1><key2>value2</key2></map_field>) are now supported
    - The reader is now able to parse single records (e. g. 
<record><field1/><field2/></record>) as well as arrays of records (e. g. 
<root><record/><record/></root>). I added a property to make it configurable 
whether the reader shall expect a single record or an array. One question: As 
there are only two options for this, I defined AllowableValues for this 
property. Despite that, I think it would be reasonable to enable EL for this 
property. But how can this be realized?
    - I removed the root validation, but remained the check for record tag 
names in order to support processing data like this 
<root><record/><record/><other/></root> (tag "other" will be ignored if check 
for record tag name is activated)


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

Reply via email to