Hi, For 2.12,x, you would need to insert some filter processor in your route. For example, you can insert an identity StAX transformer (i.e., just read each event and forward it to the user without any transformation) in your route so that the wellformedness is checked while the data is read by the tokenizer. I don't know if someone already has something like that. If not, you will need to write such a processor.
regards, aki 2014-09-17 16:22 GMT+02:00 balavino <balajieng...@gmail.com>: > Hi Aki, > > Thanks for the response! > > I use 2.12.2 Ver. > > When comes a xml file as: > > <data> > <record> > <account pan="12345"></account> > /record> > record> > <account pan="67891"></account> > </record> > <record> > account pan="98657">/account> > </record> > </data> > > I use xpath to get the value of interest /record/account@pan. But in case of > a malformed xml file as above i can choose to completely ignore the file > without processing it partially. Is there an option to identify the xml is > malformed at the start without using any xsd? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-split-tokenizer-does-not-identify-malformed-xml-tp5756111p5756647.html > Sent from the Camel - Users mailing list archive at Nabble.com.