Dark Mode
Image

XML Tutorial

XML Validation

XML Advance

XML Interview

XQuery Tutorial

XSLT Tutorial

XPath Tutorial

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

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

 

Comment / Reply From