Re: [xml] printing the value of a namespace



On Mon, Mar 10, 2003 at 04:44:01PM -0500, Nick Torenvliet wrote:
Hi, I am parsing a document, like the following

<tag1 prop="test">
</tag1>

I have an xmlNodePtr pointed to the root, and I can
printf the value of prop using xmlGetProp, but
for the life of me I can't figure out how to extract
the name of the tag to an xmlChar *. e.g. I want
to get "tag1" into an xmlChar *. 

  node->name
No accessor function, direct access.

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]