Following was imported:
<?Process_Instruction test="© All right reserved" ?>
<AAA FOO="bar">
    ,,1,, ..1.. <![CDATA[ bla  bla 
      newLine blo blo ]]>
    <BBB FOO="bar">..2..</BBB>
    ..3..
    <CC/>
    ..4..
</AAA>


Get some content
Last text part in <AAA>: '..4..'
All the text in <AAA>: ',,1,, ..1.. ..3....4..'
The attibute value in <BBB> using getAttributes('/AAA[1]/BBB[1]', 'FOO'): 'bar'
The attibute value in <BBB> using getData('/AAA[1]/@FOO'): 'bar'


Append some additional XML below /AAA/BBB:
<?Process_Instruction test="© All right reserved" ?>
<AAA FOO="bar">
    ,,1,, ..1.. <![CDATA[ bla  bla 
      newLine blo blo ]]>
    <BBB FOO="bar">
        <CCC>Step 1. Append new node</CCC>
        ..2..
        <CCC>Step 2. Append new node</CCC>
        <CCC>Step 3. Append new node</CCC>
    </BBB>
    ..3..
    <CC/>
    ..4..
</AAA>


Insert some additional XML below <AAA>:
<?Process_Instruction test="© All right reserved" ?>
<AAA FOO="bar">
    ,,1,, ..1.. <![CDATA[ bla  bla 
      newLine blo blo ]]>
    <BB>Step 1. Insert new node</BB>
    <BBB FOO="bar">
        <CCC>Step 1. Append new node</CCC>
        ..2..
        <CCC>Step 2. Append new node</CCC>
        <CCC>Step 3. Append new node</CCC>
    </BBB>
    <BB>Step 3. Insert new node</BB>
    ..3..
    <BB>Step 2. Insert new node</BB>
    <CC/>
    ..4..
</AAA>


Replace the last <BB> node with new XML data '&lt;DDD&gt; Replaced last BB &lt;/DDD&gt;':
<?Process_Instruction test="© All right reserved" ?>
<AAA FOO="bar">
    ,,1,, ..1.. <![CDATA[ bla  bla 
      newLine blo blo ]]>
    <BB>Step 1. Insert new node</BB>
    <BBB FOO="bar">
        <CCC>Step 1. Append new node</CCC>
        ..2..
        <CCC>Step 2. Append new node</CCC>
        <CCC>Step 3. Append new node</CCC>
    </BBB>
    <BB>Step 3. Insert new node</BB>
    ..3..
    <DDD>Replaced last BB</DDD>
    <CC/>
    ..4..
</AAA>


Replace second <BB> node with normal text
<?Process_Instruction test="© All right reserved" ?>
<AAA FOO="bar">
    ,,1,, ..1.. <![CDATA[ bla  bla 
      newLine blo blo ]]>
    <BB>Step 1. Insert new node</BB>
    <BBB FOO="bar">
        <CCC>Step 1. Append new node</CCC>
        ..2..
        <CCC>Step 2. Append new node</CCC>
        <CCC>Step 3. Append new node</CCC>
    </BBB>
    "Some new text"..3..
    <DDD>Replaced last BB</DDD>
    <CC/>
    ..4..
</AAA>