libxml2
1: <!DOCTYPE foo [ 2: <!ELEMENT foo EMPTY> 3: <!ATTLIST foo xml:id CDATA #IMPLIED> 4: ]> 5: <foo xml:id="bar"/>