Cheap VPS & Xen Server

Residential Proxy Network - Hourly & Monthly Packages

XML Introduction


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

  1. <?xml version=“1.0”?>
  2. <!DOCTYPE employee SYSTEM “employee.dtd”>
  3. <employee>
  4.   <firstname>vimal</firstname>
  5.   <lastname>jaiswal</lastname>
  6.   <email>vimal@Kreationnext.com</email>
  7. </employee>

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.

  1. <?xml version=“1.0”?>
  2. <employee
  3. xmlns=“http://www.Kreationnext.com”
  4. xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
  5. xsi:schemaLocation=“http://www.Kreationnext.com employee.xsd”>
  6.   <firstname>vimal</firstname>
  7.   <lastname>jaiswal</lastname>
  8.   <email>vimal@Kreationnext.com</email>
  9. </employee>

Test it Now

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

Comments

comments