StartDocument( documentVersion="1.0" )
DTD( text="
<!DOCTYPE doc [
<!ELEMENT doc (#PCDATA)>
<!ENTITY % e SYSTEM "something">
<!ENTITY replace "replace">
<!ENTITY me "me">
%e;
]>" dtdName="doc"
EntityDeclaration( name="e" systemId="something" )
EntityDeclaration( name="replace" value="replace" )
EntityDeclaration( name="me" value="me" )
)
StartElement( name="doc" qualifiedName="doc"
Attribute( name="a" qualifiedName="a" value="do replace me" )
)
Characters( text="and me too" )
EndElement( name="doc" qualifiedName="doc" )
EndDocument( )