Start with the following XML:
<COLLECTION><BOOK><TITLE>Cosmos</TITLE><AUTHOR>Carl Sagan</AUTHOR><PUBLISHER>Ballantine Books</PUBLISHER></BOOK><BOOK><TITLE>Catwings</TITLE><AUTHOR>Ursula K. Le Guin</AUTHOR><PUBLISHER>Scholastic</PUBLISHER></BOOK><BOOK><TITLE>Home Town</TITLE><AUTHOR>Tracy Kidder</AUTHOR><PUBLISHER>Random House</PUBLISHER></BOOK></COLLECTION>
Display the entire tree:
CosmosCarl SaganBallantine Books
CatwingsUrsula K. Le GuinScholastic
Home TownTracy KidderRandom House
Display Book Node Only:
Carl Sagan
Ursula K. Le Guin
Tracy Kidder
Add new element (400 Pages):
CosmosCarl SaganBallantine Books
CatwingsUrsula K. Le GuinScholastic400
Home TownTracy KidderRandom House
End with the following XML (Note the new "PAGES" element with a 400 value):
<COLLECTION><BOOK><TITLE>Cosmos</TITLE><AUTHOR>Carl Sagan</AUTHOR><PUBLISHER>Ballantine Books</PUBLISHER></BOOK><BOOK><TITLE>Catwings</TITLE><AUTHOR>Ursula K. Le Guin</AUTHOR><PUBLISHER>Scholastic</PUBLISHER><PAGES>400</PAGES></BOOK><BOOK><TITLE>Home Town</TITLE><AUTHOR>Tracy Kidder</AUTHOR><PUBLISHER>Random House</PUBLISHER></BOOK></COLLECTION>