Look at the methods setAttribute and removeAttribute in DOM_Element and/or methods appendChild, removeChild and replaceChild in DOM_Node. They should do the trick for you.
Regards Erik Rydgren Mandarinen systems AB Sweden -----Original Message----- From: Paul Tan [mailto:[EMAIL PROTECTED]] Sent: den 30 oktober 2001 13:56 To: [EMAIL PROTECTED] Subject: Modifying DOM_Node Hi, I have the following XML structure ... <Friends> <Friend name="Paul"> <Hobby type="sport"/> <Hobby type="reading"/> <GirlFriend name="Pauline"> <Hobby type="sport"/> <Hobby type="reading"/> </GirlFriend> <GirlFriend name="Paula"> <Hobby type="sport"/> <Hobby type="reading"/> </GirlFriend> </Friend> <Friend name="John"> <Hobby type="sport"/> <Hobby type="reading"/> </Friend> </Friends> I would like to know how to use Xerces XML DOM API to modify intermediate DOM_Node (e.g "Pauline's hobby") efficiently ? Initially I attemptted to remove it and then add it (modify version) again ....and when I finally write to the file, the modified DOM_Node get added at the bottom .... Please advice. Thank you. Paul --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
