Re: [xml] How to get the value of htmlNodePtr?



an htmlNodePtr is an xmlNodePtr.
I know, but I was not sure before if I can use the
function xmlDocGetRootElement(doc). Seems it works.

But I have another question:
In tutorial there is an example call "Keyword.c".
There is a line code "cur = cur->xmlChildrenNode;".
The xmlChildrenNode is not the member of xmlNodePtr.
But the program works. I wonder. :-)

Besides, if I don't use the cur->xmlChildrenNode, I
can't go down the tree. But how can I get the depth of
the tree?



--- Daniel Veillard <veillard redhat com> wrote:
On Thu, Dec 18, 2003 at 01:17:30AM -0800, Wei Chen
wrote:
Many functions handling HTML-file use a parameter
of
htmlNodePtr. I know one can get the value of
xmlNodePtr with xmlDocGetRootElement(doc). But
with
which function can I get the value of htmlNodePtr?


http://xmlsoft.org/html/libxml-HTMLparser.html#htmlNodePtr

an htmlNodePtr is an xmlNodePtr.

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/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/



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