Re: [xml] Confused newbie...

On Fri, Jul 27, 2001 at 12:02:00PM -0400, David Filion wrote:

I'm trying to get a feel for how the libxml2 data structure is set up.  I'm
using the example.xml from the web page as my source.

I can open the the file no problem.
When I do doc->children->name I get "EXAMPLE".  Great. But,
when I do doc->children->children->name I get "text".  I was expecting "head" as
stated by the web page.

What am I doing wrong?

  nothing, you are just seeing the text node containing the carriage return
and the spaces present before thre th opening of the first children child


Daniel Veillard      | Red Hat Network
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]