creating a start element:
<myNs:myTag foo="bar" xmlns:myNs="http://www.w3c.org/myNs#">

creating a start element:
<myTag xmlns="http://www.w3c.org/myNs#">

creating a start element:
<myTag argh="tomato"
       foo="bar"
       xmlns="http://www.w3c.org/myNs#">


creating an end element:
</myNs:myTag>

creating a CData section:
<![CDATA[I am content.]]>

creating a comment:
<!-- I am a comment. -->

creating a tag with qualified name and namespaceUri:
<foo:bar argh="fruit&amp;vegetable"
         key="value"
         xmlns:foo="http://foo.com">I&apos;m inside the tag &amp; contain dangerous chars</foo:bar>


creating a attribute string, entities in values already had been replaced:
channel="ABC" series="Starsky &amp; Hutch"

using the array-syntax for attributesToString()
channel="ABC" series="Starsky &amp; Hutch"