[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Example program tree1.c: Node content always NULL ?
- From: Daniel Veillard <veillard redhat com>
- To: Karl <myonlyb vollbio de>
- Cc: xml gnome org
- Subject: Re: [xml] Example program tree1.c: Node content always NULL ?
- Date: Mon, 10 Jan 2005 15:51:19 -0500
On Mon, Jan 10, 2005 at 12:02:01PM -0800, Nathanael Noblet wrote:
>
> On Jan 10, 2005, at 10:51 AM, Karl wrote:
> ><?xml version="1.0" ?>
> ><Praktikum><Umfeld><Feld><Boden>Rasen</Boden><Ameise><Typ>Rot</
> >Typ><ID>1</ID><Blickrichtung>NW</Blickrichtung><Angegriffen>0</
> >Angegriffen><Objekt>Stein-2</Objekt></Ameise></Feld></
> >Umfeld><Status>OK</Status></Praktikum>
> >
> >Unfortunately: all content attributes are NULL. The "<ID>1</ID>" e.g.
> >should have content 1, or am I wrong?
> >
> >Can anyone tell me, what I am doing wrong?
>
> try the cur_node->children->content instead .
xmllint --debug yourxml will show you the full structure of the document.
Daniel
--
Daniel Veillard | Red Hat Desktop team http://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]