Home >>XML Tutorial

XML Tutorial

XML Tutorial

XML tutorial is for learners and for experts. Our XML tutorial provides detailed knowledge of XML technology such as xml, xml characteristics, xml instances, xml related technologies, xml structure formation by DTD, xml structure development by schema (XSD), distinction between DTD and schema.

XML Validation

XML file is validable in 2 ways:

against DTD

against XSD

The XML structure is specified using DTD (Document Schema Definition) and XSD (XML Schema Definition).

XML DTD

You'll learn about DTD file, build xml with DTD, use CSS file, CDATA vs PCDATA and the discrepancy between DTD and XML schema in our XML tutorial.

Let's have a peek at a definition of XML utilizing DTD.

employee.xml


<?xml version="1.0"?>  
<!DOCTYPE employee SYSTEM "employee.dtd">  
<employee>  
  <firstname>phptpoint</firstname>  
  <lastname>Noida</lastname>  
  <email>phptpoint@gmail.com</email>  
</employee>  

XML Schema

We will provide a detailed description of the scheme file, XML schema testing, XML schema data types and XML parsers in this XML tutorial.

Let's have a look at an example of XML using XSD.


<?xml version="1.0"?>  
<employee  
xmlns="http://www.phptpoint.com"  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
xsi:schemaLocation="http://www.phptpoint.com employee.xsd">  
  <firstname>phptpoint</firstname>  
  <lastname>Noida</lastname>  
  <email>phptpoint@gmail.com</email>  
</employee>  


XML Tutorial Index

Sr.No. Topics
1 What is XML
2 XML Features
3 HTML vs XML
4 XML Examples
5 XML Related Technologies
6 XML Attributes
7 XML Comments
8 XML Tree Structure
9 XML Validation
10 XML DTD
11 XML CSS
12 XML Schema
13 DTD vs XSD
14 CDATA vs PCDATA
15 XML Parsers
16 XML DOM
17 XML Database
18 XML Namespaces

No Sidebar ads