0
|
1 |
StartDocument( documentVersion="1.0" )
|
|
2 |
DTD( text="
|
|
3 |
<!DOCTYPE doc [
|
|
4 |
<!ELEMENT doc (#PCDATA)>
|
|
5 |
<!ENTITY % e SYSTEM "something">
|
|
6 |
<!ENTITY replace "replace">
|
|
7 |
<!ENTITY me "me">
|
|
8 |
%e;
|
|
9 |
]>" dtdName="doc"
|
|
10 |
EntityDeclaration( name="e" systemId="something" )
|
|
11 |
|
|
12 |
EntityDeclaration( name="replace" value="replace" )
|
|
13 |
|
|
14 |
EntityDeclaration( name="me" value="me" )
|
|
15 |
)
|
|
16 |
StartElement( name="doc" qualifiedName="doc"
|
|
17 |
Attribute( name="a" qualifiedName="a" value="do replace me" )
|
|
18 |
)
|
|
19 |
Characters( text="and me too" )
|
|
20 |
EndElement( name="doc" qualifiedName="doc" )
|
|
21 |
EndDocument( )
|