[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] printing the value of a namespace
- From: Nick Torenvliet <torenvliet ispnet ca>
- To: veillard redhat com
- Cc: torenvliet fieldstonesolutions com, xml gnome org
- Subject: Re: [xml] printing the value of a namespace
- Date: 10 Mar 2003 17:20:30 -0500
My code looks like this
xmlChar *out
cur = xmlDocGetElementRoot(doc);
printf("%s\n",cur->name);
and it give a seg fault.
On Mon, 2003-04-07 at 19:00, Daniel Veillard wrote:
> 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
--
Nick Torenvliet B.A.,B.Eng.
FieldStone Solutions
www.fieldstonesolutions.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]