/tutorial/xml/sax/example.xml
http://github.com/tybor/Liberty · XML · 21 lines · 21 code · 0 blank · 0 comment · 0 complexity · 31152053822c74ae256f24d841d05cf3 MD5 · raw file
- <?xml version='1.0'?>
- <!DOCTYPE tree [
- <!ELEMENT tree (node*)>
- <!ELEMENT node (node|leaf)*>
- <!ELEMENT leaf (#PCDATA)>
- <!ATTLIST leaf id ID #REQUIRED>
- ]>
- <tree>
- <node>
- <leaf id="1"/>
- <leaf id="2">lt is < but gt is ></leaf>
- <leaf id="3">
- <![CDATA[
- This is an example of a raw <cdata> leaf.
- ]]>
- </leaf>
- <node>
- <leaf id="4"/>
- </node>
- </node>
- </tree>