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