Hi

I know how to parse a xml-document into a DOM-tree, and traverse this tree.
Now I have 2 questions

1) I wanna fill out the empty tags i might have fx.

<root>
  <tag1></tag1>
</root>

should be:

<root>
  <tag1>Some new text here</tag1>
</root>

2) I wanna add childelements to my excisting elements fx.

<root>
  <tag1></tag1>
</root>

becomes:

<root>
  <tag1>
    </tag2>
    </tag3>
  </tag1>
</root>

I wanna do this in the DOM-tree, because I have to do it several times,
when my tree is done, I can return the tree (as a xml-document) with all the 
data and new tags...

I have searched the net, but I can only find examples of how to traverse the 
tree, but not a single example of how to add a new branch to my DOM-tree

Any help / hint would be appriciated.
If you have an example I would be very glad.

       _\|/_
       (@ @)
---oOOo-(_)-oOOo---
    Ren� Jensen
 [EMAIL PROTECTED]

Reply via email to