How to get an xml subtree using DOM using xerces?

A

Anthony Mak

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!!

Please reply to as well :- (e-mail address removed)

^_^

Anthony Mak
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top