Validating xml using java

In DTD’s, to declare any component we use declaration syntax Here content model contains name of child elements or the type of data in the element.In the first line of example info is the name of element and all three items inside parenthesis are child elements.

Now that you understand more about namespaces, you're ready to take a deeper look at the process of XML Schema validation.

Although a full treatment of XML Schema is beyond the scope of this tutorial, this section will show you the steps you need to take to validate an XML document using an XML Schema definition.

I will explain about using schema definition language in next article.

Let me know if you have any confusion in above content.

Through its support for datatypes and namespaces, XML Schema has the potential to provide the standard structure for XML elements and attributes.