This language is then used to carry, but not necessarily display, data in a platform-independent fashion.
The language is defined with the use of markup tags, much like Hypertext Markup Language (HTML).
package (available at provides a way to validate XML files against a Document Type Definition (DTD).
However, because it uses SAX, it is not easy to combine DTD validation with DOM.
Validating any file using DOM is a similar process, regardless of the underlying schema format.
To validate, call a validation method on a DOM object.
The DOM extension supports all three types, while Simple XML provides only an XML Schema validator. Please visit this page to clear all LQ-related cookies.This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant.You fix this error (by changing the ) before using the document within your software application.XML validation is important because you want to catch errors as early as possible in the information interchange process.