<?xml version="1.0" encoding="UTF-8"?>
<!-- with comments -->
<?xml-stylesheet type="text/xml" href="#style1"?>
<!DOCTYPE NewsML PUBLIC "urn:newsml:iptc.org:20001006:NewsMLv1.0:1" "dtds/NewsMLv1.0.dtd" [
<!ELEMENT doc (p)*>
<!ELEMENT p (#PCDATA)>
<!ATTLIST p attribute CDATA #REQUIRED>
<!ENTITY entity "***** this was an entity *****">
]>
<doc xmlns:x="urn:x-is-simple">
<default:no-content xmlns:default="urn:m&n"/>
<!-- A comment in the code -->
<p entity="there's an &entity; here & here are double quotes "">there's an &entity; here & here are double quotes "</p>
<p>20011022</p>
<p>></p>
<x:div>This is an embeded tag: <tag></x:div>
<p attribute="escaped " XML in an attribute.">Is the attribute escaped?</p>
<p eval="$var > 4 ? 'bigger' : "smaller" ">Is the attribute escaped? we got </p>
<p>same as in above $var > 4 ? 'bigger' : "smaller" </p>
<p test="m&n">(*) Is the '&' in the attribute escaped? ❤</p>
]]>
<![CDATA[<greeting>Hello, world!</greeting>]]>
<!-- should we escape stuff & bad thigs < > in a comment? -->
<?magnum <insane> pi="a&b"?>
</doc>