libxml2
<?xml version='1.0' ?> <!DOCTYPE test [ <!ENTITY ampproblem '&'> ]> <t a="&problem;">a</t>