libxml2
1: <!DOCTYPE doc [ 2: <!ELEMENT doc (a, b, a)> 3: <!ELEMENT a EMPTY> 4: <!ELEMENT b EMPTY> 5: ]> 6: <doc><b/><a/><b/></doc>