[ https://issues.apache.org/jira/browse/CAMEL-6004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13860160#comment-13860160 ]
subrata commented on CAMEL-6004: -------------------------------- Hi, Actually service mix 4.5.3 does not resolve this issue fully. Please see the sample input and output below when we have self closing tag. There seems to be a problem still {color:red}if the first child element has self closing tag{color}. Note - this does not seems to be an issue if any other child node has self closing tag except the first one. *strong*Input XML*strong*: <?xml version="1.0" encoding="UTF-8"?> <orders> <order RECORDID="1"> <name/> <description>asdasd</description> <price>7000</price> <remark>testing</remark> </order> <order RECORDID="2"> <name/> <description>adasd</description> <price>7000</price> <remark>testing</remark> </order> </orders> *strong*Camel XML*strong*: <camelContext xmlns="http://camel.apache.org/schema/blueprint"> <route> <from uri="file:camel/XMLInput"/> <split streaming="true"> <tokenize token="order" xml="true"/> <to uri="file:camel/XMLOutput?fileName=RECORDID.xml"/> </split> </route> </camelContext> *strong*OUTPUT Generated*strong*: <order RECORDID="2"> <name/> > Tokenize XML does not support self-closing XML tokens > ----------------------------------------------------- > > Key: CAMEL-6004 > URL: https://issues.apache.org/jira/browse/CAMEL-6004 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.10.2 > Reporter: Greg Heidorn > Assignee: Willem Jiang > Priority: Minor > Fix For: 2.10.6, 2.11.1, 2.12.0 > > Attachments: GenericTokenizeTest.java, camel-6004.patch > > > Tokenize creates non-well-formed XML when handling self-closing XML tokens. > Tokenize should support parsing tokens that are either have a closing tag or > are self-closing. -- This message was sent by Atlassian JIRA (v6.1.5#6160)