Javatpoint Logo

91-9990449935

 0120-4256464

XML Tutorial

XML tutorial is designed for beginners and professionals. Our XML tutorial provides a detailed knowledge of XML technology like what is xml, features of xml, xml example, xml related technologies, creating xml structure by DTD, creating xml structure by schema (XSD), difference between DTD and schema.


XML Validation

XML file can be validated by 2 ways:

  1. against DTD
  2. against XSD

DTD (Document Type Definition) and XSD (XML Schema Definition) are used to define XML structure.


XML DTD

In our XML tutorial, you will learn about DTD file, creating xml with DTD, using CSS file, CDATA vs PCDATA and difference between DTD and XML schema.

Let's see an example of XML using DTD file.

employee.xml

Test it Now

A detailed description of XML with DTD is given in next pages.


XML Schema

In this XML tutorial, we will provide a detail description of schema file, XML schema validation, XML schema data types and XML parsers.

Let's see an example of XML using XSD file.

Test it Now

A detailed description of XML with XSD is given in next pages.

Next TopicWhat is XML