see http://xml.apache.org/xerces2-j/faq-general.html#faq-5
----- Original Message ----- From: "Gaurav Gupta" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 23, 2005 10:37 PM Subject: Re: How to get an xml subtree using DOM? > I think this can be done by first reaching to the node whose subtree you > require and then serialize that subtree into the string. > > Gaurav > > Anthony Mak wrote: > > > Hi all, > > > > I am using Xerces DOM library. I want to get a subtree (everything > > including the tags ) from an xml document as a string ( and save this > > subtree into a xml/text file). Currently I am using the TreeWalkerImpl > > class and nextSibling() and getCurretnNode() to traverse the xml tree. > > > > (The reason why I want to do this is I needed to get the subtree as an > > xml file to feel it to a Mathml to image converter program.) > > > > Much appreciate if you can send me some codes or point me which > > methods I need to use. Thanks!! > > > > Anthony > > > > --------------------------------------------------------------------- > 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]