Hi, typically in the past when I have validated XML documents, I've done something like this:
Recently though I've started using the
Java XML Validation API included with Java 5+. It seems much easier to use the Java XML validation API rather than the DOMParser's validation because 1) the API is simpler and 2) I can easily switch parsers and validation types (i.e. xsd or dtd).
Is there a disadvantage to using the Java XML validation API? I can't see why I wouldn't.
Thanks,
Jeff