[
https://issues.apache.org/jira/browse/CAMEL-6004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13860141#comment-13860141
]
subrata commented on CAMEL-6004:
--------------------------------
Hi Christian,
Thanks for your response. Actually this is not working with the sample I am
trying. I am using service mix 4.5.3. Please see the sample input and output
below. Do you think I am missing anything?
Input XML:
<?xml version="1.0" encoding="UTF-8"?>
<orders>
<order>
<name>test1</name>
<description/>
<price>7000</price>
<remark>testing</remark>
</order>
<order>
<name>test1</name>
<description/>
<price>7000</price>
<remark>testing</remark>
</order>
</orders>
Tokenizer Node is: order
Output generated: (malformed XML)
<order>
<name>test1</name>
<description/>
The output is correct, if I change the self closing tag for "description"
element to <description>description1</description>
> 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)