libxml2
<!DOCTYPE doc [ <!ELEMENT doc (#PCDATA)> <!ATTLIST doc val (v1 | v2 | v3) #IMPLIED> ]> <doc val="v4"></doc>