libxml2
<?xml version="1.0"?> <!DOCTYPE doc [ <!ELEMENT doc (#PCDATA)> ]> <doc>This is a valid document !</doc>