Talend 解析具有多个标题的xml
我正在尝试读取接收到的具有多个标头的xml数据 例如:Talend 解析具有多个标题的xml,talend,talend-mdm,Talend,Talend Mdm,我正在尝试读取接收到的具有多个标头的xml数据 例如: <?xml version="1.0" encoding="utf-8"?> <RepeaterData> <Version /> <Items> <Item> <year>2017</year> <Additional> <
<?xml version="1.0" encoding="utf-8"?>
<RepeaterData>
<Version />
<Items>
<Item>
<year>2017</year>
<Additional>
<?xml version="1.0" encoding="utf-8"?>
<RepeaterData>
<Version />
<Items>
<Name>toto</Nom>
</Items>
</RepeaterData>
</AdditionalCharge>
</Item>
<Item>
<year>2018</year>
<Additional >
<?xml version="1.0" encoding="utf-8"?>
<RepeaterData>
<Version />
<Items>
<Item>
<element type="System.String">3</Sousdept>
<Name type="System.String">toto</Nom>
</Item>
<Item>
<element type="System.String">3</Sousdept>
<Name type="System.String">tata</Nom>
</Item>
</Items>
</RepeaterData>
</Additional>
</Item>
</Items>
2017
托托
2018
3.
托托
3.
塔塔
我还尝试用StringHandling.EREPLACE(b,“,”)删除xml头代码>但它不起作用
请帮帮我 这里有一个快速而肮脏的解决方案。使用tReplace
从输入中删除所有xml头,并将结果写入已写入xml头的文件(因为第一个头已被删除)
tFileInputFullRow\u 1
将是您的tRestClient
tFileInputDelimited_2
包含由tFixedFlowInput_1
编写的xml头
tfileoutputdimited_1
写入与tfileoutputdimited_2
在Append
模式下相同的文件
然后可以读取生成的xml文件。我收到的数据来自tRestClient,我没有使用这些文件