<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<docEle xmlns="http://www.test.com">

  <docEleChild xmlns="http://www.test2.com"/>

</docEle>


<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns="http://www.test.com">

  <docEleChild xmlns="http://www.test2.com"/>

</po:docEle>


<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns="http://www.test.com">

  <docEleChild xmlns="http://www.test2.com">
    <docEleChildChild/>
  </docEleChild>

</po:docEle>


<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
  </po2:docEleChild>

</po:docEle>


<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  </po2:docEleChild>

</po:docEle>


<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  </po2:docEleChild>

</po:docEle>


<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
    <docEleChildChild5 xmlns="http://www.test4.com"/>
  </po2:docEleChild>

</po:docEle>


<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
    <docEleChildChild5 xmlns="http://www.test4.com">
      <noNamespace xmlns=""/>
    </docEleChildChild5>
  </po2:docEleChild>

</po:docEle>


<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
    <docEleChildChild5 xmlns="http://www.test4.com">
      <noNamespace xmlns=""/>
    </docEleChildChild5>
  </po2:docEleChild>

</po:docEle>


<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
    <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
      <noNamespace xmlns=""/>
    </docEleChildChild5>
  </po2:docEleChild>

</po:docEle>


<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
    <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
      <noNamespace xmlns=""/>
    </docEleChildChild5>
    <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value"/>
  </po2:docEleChild>

</po:docEle>


<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
    <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
      <noNamespace xmlns=""/>
    </docEleChildChild5>
    <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
      <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
    </docEleChildChild6>
  </po2:docEleChild>

</po:docEle>


<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
    <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
      <noNamespace xmlns="" xmlns:NS1="">
        <testing1.1Stuff xmlns="http://testclash.com"/>
      </noNamespace>
    </docEleChildChild5>
    <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
      <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
    </docEleChildChild6>
  </po2:docEleChild>

</po:docEle>
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
    <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
      <noNamespace xmlns="" xmlns:NS1="">
        <testing1.1Stuff xmlns="http://testclash.com"/>
        <NS1:testing1.1Stuff xmlns:NS5="http://www.someRandomUri.com" NS5:attr="value" xmlns:NS1="http://testclash.com"/>
      </noNamespace>
    </docEleChildChild5>
    <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
      <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
    </docEleChildChild6>
  </po2:docEleChild>

</po:docEle>
error conditions

Fatal Message: Namespace fixup cannot be performed on a DOM Level 1 Node.
Related data level1Node

Fatal Message: Namespace fixup cannot be performed on a DOM Level 1 Node.
Related data level1Attr
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
    <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
      <noNamespace xmlns="" xmlns:NS1="">
        <testing1.1Stuff xmlns="http://testclash.com"/>
        <NS1:testing1.1Stuff xmlns:NS5="http://www.someRandomUri.com" NS5:attr="value" xmlns:NS1="http://testclash.com"/>
      </noNamespace>
    </docEleChildChild5>
    <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
      <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
    </docEleChildChild6>
  </po2:docEleChild>

  <!--some comment-->

</po:docEle>
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
    <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
      <noNamespace xmlns="" xmlns:NS1="">
        <testing1.1Stuff xmlns="http://testclash.com"/>
        <NS1:testing1.1Stuff xmlns:NS5="http://www.someRandomUri.com" NS5:attr="value" xmlns:NS1="http://testclash.com"/>
      </noNamespace>
    </docEleChildChild5>
    <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
      <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
    </docEleChildChild6>
  </po2:docEleChild>

</po:docEle>
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
    <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
      <noNamespace xmlns="" xmlns:NS1="">
        <testing1.1Stuff xmlns="http://testclash.com"/>
        <NS1:testing1.1Stuff xmlns:NS5="http://www.someRandomUri.com" NS5:attr="value" xmlns:NS1="http://testclash.com"/>
      </noNamespace>
    </docEleChildChild5>
    <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
      <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
    </docEleChildChild6>
  </po2:docEleChild>

  
  <![CDATA[some cdata]]>

</po:docEle>
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">

  <po2:docEleChild>
    <docEleChildChild xmlns="http://www.test2.com"/>
    <docEleChildChild2 xmlns="http://www.test3.com"/>
    <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
    <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
    <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
      <noNamespace xmlns="" xmlns:NS1="">
        <testing1.1Stuff xmlns="http://testclash.com"/>
        <NS1:testing1.1Stuff xmlns:NS5="http://www.someRandomUri.com" NS5:attr="value" xmlns:NS1="http://testclash.com"/>
      </noNamespace>
    </docEleChildChild5>
    <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
      <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
    </docEleChildChild6>
  </po2:docEleChild>some cdata

</po:docEle>