Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

skip an element while validating xml

843834Dec 28 2004 — edited Jan 3 2005
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 31 2005
Added on Dec 28 2004
6 comments
576 views