I use split with tokenize to split a xml file based on a tag also a xpath
expression to get a particular attributes value.
When i give a malformed xml like a missing tag closure as :
<parent><child></child;parent> it raises a XPathExpressionException,
while i have a xml as : <parent><child></child></child><parent> it doesn't
complain it as malformed.
/ <split strategyRef="splitXmlAggregator" stopOnException="true">
<tokenize token="Record" xml="true" />
<setHeader headerName="Id">
<xpath resultType="java.lang.String">/parent/child [ at ] value</xpath>
</setHeader>
</split>/
expression to get a particular attributes value.
When i give a malformed xml like a missing tag closure as :
<parent><child></child;parent> it raises a XPathExpressionException,
while i have a xml as : <parent><child></child></child><parent> it doesn't
complain it as malformed.
/ <split strategyRef="splitXmlAggregator" stopOnException="true">
<tokenize token="Record" xml="true" />
<setHeader headerName="Id">
<xpath resultType="java.lang.String">/parent/child [ at ] value</xpath>
</setHeader>
</split>/