Note.dtd
<!DOCTYPE [ <!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
test.xml <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE note PUBLIC "-//lutong//test dtd doc//EN" "Note.dtd">
<note> <to>George</to> <from>John</from> <heading>Reminder</heading> </note>