I have an XML file which contains details as shown below
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 ??