Re: [xml] traverse the XML tree but contents and attributes are e mmpty

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Thu Dec 07 2000 - 06:51:58 EST


On Thu, Dec 07, 2000 at 11:36:32AM -0000, Wang, Hai wrote:
>
> Hello Daniel,
> You are right, but I still could not print out any thing from leaves
> nodes,say text node. I used the function "xmlNodeIsText"to check if the node
> is a leaf node. the output from my codes is:

  Sorry, I won't fix your code.
You can look at the libxml code in tree.c and debugXML.c to find out how to
extract the informations you need and that get printed when using
 xmllint --debug yourXMLfile

Daniel

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


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Dec 07 2000 - 09:43:37 EST