Re: [xml] xmlNode->content

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Jan 25 2000 - 03:51:23 EST


On Mon, Jan 24, 2000 at 10:03:48PM +0100, Michael Wiedmann wrote:
>
> Hi,
>
> I want to use libxml in my application and want to load it dynamically
> at run time. This is generally not a problem and I can handle this.
>
> My problem is the ´content´ element in ´xmlNode´. How can I access
> transparently the content of a node without knowing whether ´libxml.so´
> on the target platform was configured with ´--with-buffers´ or not?

 I would suggest to use the API for that, more specifically
xmlChar * xmlNodeGetContent(xmlNodePtr cur);

 That seems the simplest, if you can afford the strdup cost.

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:59 EDT