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 file can be validated by 2 ways:
DTD (Document Type Definition) and XSD (XML Schema Definition) are used to define XML structure.
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
<?xml version="1.0"?> <!DOCTYPE employee SYSTEM "employee.dtd"> <employee> <firstname>vimal</firstname> <lastname>jaiswal</lastname> <email>vimal@rookienerd.com</email> </employee>
A detailed description of XML with DTD is given in next pages.
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.
<?xml version="1.0"?> <employee xmlns="http://www.rookienerd.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.rookienerd.com employee.xsd"> <firstname>vimal</firstname> <lastname>jaiswal</lastname> <email>vimal@rookienerd.com</email> </employee>
A detailed description of XML with XSD is given in next pages.
Before learning XML, you must have the basic knowledge of HTML.
Our XML tutorial is designed to help beginners and professionals.
We assure that you will not find any problem in this XML tutorial. But if there is any mistake, please post the problem in contact form.