Xml Introduction

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

snippet
<?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.

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.

snippet
<?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.

XML Index

Prerequisite

Before learning XML, you must have the basic knowledge of HTML.

Audience

Our XML tutorial is designed to help beginners and professionals.

Problem

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.

Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +