Lately, I have been working on a use case where I was asked to parse XML for its validation and retrieve its values.
There are two different document type definitions that can be used with XML:
- DTD – The original Document Type Definition
- XMLSchema – An XML-based alternative to DTD
A document type definition defines the rules and the legal elements and attributes for an XML document. An XML document validated against a DTD or XSD is both “Well Formed” and “Valid”.
View original post 256 more words