libxml2
<!DOCTYPE doc [ <!ATTLIST doc val ID #IMPLIED> <!ATTLIST doc id ID #IMPLIED> <!ELEMENT doc (#PCDATA)> ]> <doc val="v1"></doc>