you can use the createNode() or createElement() methods to make the new items. then set their values - if you want to add attributes then there's a createAttribute() method too. finally use the appendChild() method to insert the new node into the appropriate place in the DOM.
I can give you a more concrete example if you show me your XML and your current code (I don't have the book).
hth
Phil
|