You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Pierre Villard (Jira)" <ji...@apache.org> on 2026/01/05 10:36:06 UTC

[jira] [Resolved] (NIFI-9198) XMLReader : Problem with type in schema text

     [ https://issues.apache.org/jira/browse/NIFI-9198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre Villard resolved NIFI-9198.
----------------------------------
    Resolution: Feedback Received

Apache NiFi 1.x is no longer maintained and no new release is planned on the 1.x release line. Marking as resolved as part of a cleanup operation. Please open a new one with an updated description if this is still relevant for NiFi 2.x.

> XMLReader : Problem with type in schema text
> --------------------------------------------
>
>                 Key: NIFI-9198
>                 URL: https://issues.apache.org/jira/browse/NIFI-9198
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework, Documentation &amp; Website
>    Affects Versions: 1.14.0
>            Reporter: Xavier Marc
>            Priority: Major
>
> Hi,
> Firstly i think that the type map not working as mentionned in the documentation ([https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-record-serialization-services-nar/1.14.0/org.apache.nifi.xml.XMLReader/additionalDetails.html)]
> Secondly for records with attributes in an array i can't transform it in JSON from XML.
> Example XML :
>                <KeyWords>
>                     <Keyword groupe="test1">true</Keyword>
>                     <Keyword groupe="test2">false</Keyword>
>                 </KeyWords>
>  
> Example Schema Text :
>                                 { 
>                                     "name": "Keywords", 
>                                     "type": [ "null", {
>                                         "name": "Keywords_record", 
>                                         "type": "record",
>                                         "fields": [
>                                             {
>                                                 "name": "Keyword", 
>                                                 "type": { 
>                                                     "type": "array", 
>                                                     "items": {
>                                                         "name": "Keyword_array",
>                                                         "type": "record",
>                                                         "fields": [
>                                                             \{"name": "groupe", "type": ["null", "string"]},
>                                                             \{"name": "Keyword_value", "type": ["null", "string"]}
>                                                         ]
>                                                     }
>                                                 }
>                                             }
>                                         ]
>                                     }]
>                                 }
>  
> I think it's two bugs but I could be wrong.
>  
> Thanks



--
This message was sent by Atlassian Jira
(v8.20.10#820010)