Validation: DTDs


<!DOCTYPE p [
<!ELEMENT p (#PCDATA | a | em)*>
<!ELEMENT a (#PCDATA)>
<!ATTLIST a href CDATA #REQUIRED >
<!ELEMENT em (#PCDATA)>
]>

See example 3, XML