Gábor Gyimesi created MINIFICPP-2593:
----------------------------------------
Summary: XMLReader's Attribute Prefix property does not work
Key: MINIFICPP-2593
URL: https://issues.apache.org/jira/browse/MINIFICPP-2593
Project: Apache NiFi MiNiFi C++
Issue Type: Bug
Reporter: Gábor Gyimesi
'Attribute Prefix' property should set a specific prefix for parsed attributes
using the XMLReader controller service when 'Parse XML Attributes' property is
set to true and the schema is inferred. Unfortunately when a prefix is set it
seems that the original attribute names are used and the values is set to null.
Example with ConvertRecord processor using XMLReader as the record reader and
JsonRecordSetWriter as record writer:
Properties:
Parse XML Attributes: true
Attribute Prefix: attr_
Field Name for Content: tagval
Input:
{code:java}
<note>
<to alias="Toto">Thomas Mills</to>
</note>
{code}
Expected result:
{code:java}
[{"to":{"attr_alias":"","tagval":"Thomas Mills"}}] {code}
Actual result:
{code:java}
[{"to":{"alias":null,"tagval":"Thomas Mills"}}] {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)