I have an XML file which contains details as shown below
ASGBGA
3135
aaagdg
3174
oyoyoy
3135
I am iterating over the tag using getXMLNodeIterator. Each document i am writing into separate file.In this case 2nd document is invalid XML so converting xmlNodeToDocument is throwing error Expecting tag and it is coming out of the service without iterating over other tags. Can anybody help me i want to write 2nd to invalid file and should continue iterating over further nodes ??
Hi Thanks for the suggestion.In Catch block i can write into a file.But after coming out of the Catch block,for next iteration the service getNextXMLNode service is throwing an exception resulting which it is not processing the further nodes.