libxml2
<?xml version="1.0"?> <!DOCTYPE doc [ <!ATTLIST doc a1 NMTOKENS "1 2"> <!ELEMENT doc (#PCDATA)> ]> <doc/>