Validation
DTD
What is DTD?
Types of DTD
Basic Syntax
Internal DTD:
<!DOCTYPE rootElement [
<!ELEMENT rootElement (child1, child2)>
<!ELEMENT child1 (#PCDATA)>
<!ELEMENT child2 EMPTY>
<!ATTLIST child1
attributeName CDATA #REQUIRED>
]>External DTD
Common DTD Declarations
Declaration
Description
Example (Internal DTD)
XML Schema (XSD)
What is XML Schema (XSD)?
Basic Syntax
Key Features
Example of Usage in XML Document
Advantages over DTD
Feature
DTD
XML Schema (XSD)
Last updated