Hi

I have the following document:

<a>
  <b>
    <c/>
  </b>
</a>

When I move my XmlCursor to <b> child (in this case <c/>) and add a new
child <d/> with cursor.beginElement() I get a the correct result:

<a>
  <b>
    <d/>
    <c/>
  </b>
</a>

But now if the original document is (no child under <b/> yet):

<a>
  <b/>
</a>

How can I insert my <d/> has a new child of <b/> once I have moved my cursor
to <b/> ?

So far I only managed to have my <d/> before <b/> :-(

Regards,
Pascal

Reply via email to