Re: [xml] how to get xml as a text?



On Sat, May 10, 2003 at 12:08:43AM +0200, Hubert Soko³owski wrote:
I know how to parse this file, how to get attributes and text, but
I need to get "<s v='2'/>" as xmlChar*, I mean the whole content of a node
"send".
I have tried functions like
xmlNodeGetContent
xmlNodeListGetString

but none if them returns what I want.

  See xmlNodeDump() , you will have to build a buffer and get its content
value. See xmlElemDump() as an example.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]