Re: [xml] Example program tree1.c: Node content always NULL ?

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" ?>

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 Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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