Java API for XML (JAXP) – Validation

Validating XML using DTD or XSD

An XML document is considered ‘well-formed’ if it follows the normal rules of XML. i.e. all tags are closed properly etc. On the other hand, an XML is considered valid if it follows the rules specified in the DTD or XSD. In the example below we look at validating an XML document while using DOM, SAX and StAX. we look at both DTD and XSD validation

Java API for XML (JAXP) – Validation

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to top