<!DOCTYPE doc [<!ATTLIST e9 attr CDATA "default">]>
<!-- Comment 2 -->
<doc      >
    <a:e1 xmlns:a="http://www.nonamespace.com"  />
    <e2   xmlns="http://www.blankns.com" ><e2child>I've no attributes</e2child></e2>
    <e3   name =    "elem3" id="elem3"/>
    <e4 name="elem4" id="elem4"></e4>
    <!-- Comment before e5 and after e4 -->
    <e5 a:attr="out" b:attr="sorted" attr2="all" attr="I'm"
        xmlns:b="http://www.ietf.org"
        xmlns:a="http://www.w3.org"
        xmlns="http://example.org"/>
    <e6 xmlns="" xmlns:a="http://www.w3.org">
        <e7 xmlns="http://www.ietf.org">
            <e8 xmlns="" xmlns:a="http://www.w3.org">
                <e9 xmlns="" xmlns:a="http://www.ietf.org"/>
                <text>&#169;</text>
            </e8>
        </e7>
    </e6>
    <![CDATA[<don't><process><this>:)]]>
</doc><!-- Comment 3 -->