skip an element while validating xml
843834Dec 28 2004 — edited Jan 3 2005Hi,
I am trying to validate an xml file against a xsd, my problem
is that, other than the elements defined in the xsd, if any extra element
is present in the xml, the program should skip the element.
Right now it throws saxParseExcpetion. and i am able to continue with the validation by using default handler, but the same exception can be thrown in different scenarios like when all the required fields are present and they are in arranged in a different order. I am not able to differentiate both the errors as it throws the same exception and error message. Can somebody help me out.
Thanks & regards