List Info

Thread: extracting xml subtree text from xmlNode




extracting xml subtree text from xmlNode
user name
2006-06-21 18:13:08

Hi,

 

I have xmlNodePtr pointing to a particular xmlNode in a DOM tree.

I’m looking for a way to get full XML text of a subtree from that point on – i.e. XML string representing entire subtree, for which currently pointed node is a root.

I’d appreciate any suggestions/examples on how this can be acomplished.

 

Thanks,

Milan

 

 

extracting xml subtree text from xmlNode
user name
2006-06-22 13:50:38
On Wed, Jun 21, 2006 at 11:13:08AM -0700, Andric, Milan
wrote:
> Hi, 
>  
> I have xmlNodePtr pointing to a particular xmlNode in a
DOM tree. 
> I'm looking for a way to get full XML text of a
subtree from that point
> on - i.e. XML string representing entire subtree, for
which currently
> pointed node is a root. 
> I'd appreciate any suggestions/examples on how this
can be acomplished. 

  use the associated xmlSave function:
  http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveTree

Daniel

P.S.: and please subscribe to the list if you need further
informations

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillardredhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )