🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #10636

libxml y doc->children

#10636
From: dcm
Date: Tue, 19 Feb 2002 16:10
19 lines
1501 bytes
Hola a todos...

Intento utilizar la libxml para crear y leer ficheros en formato xml. Y
me surge el siguiente problema al leerlos. Como lenguaje utilizo C.

	#include <libxml/tree.h>
	#include <libxml/parser.h>

	xmlDocPtr doc;
	xmlNodePtr node;

	doc = xmlParseFile("/home/dcm/xml.xml");
	node = doc->children;

pues resulta que doc->children es NULL, que no tiene ninguna informaci�n
y esto no es normal ya que el fichero que cargo esta bien construido y
doc != NULL

Ha alguien le ha ocurrido lo mismo? o sabe como solucionarlo?
Technical Details
Message-ID: <pan.2002.02.19.17.10.04.687153.10261@dedonde.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.rediris.es!news.cesca.es!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,3ae2d76a32ebb694,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-02-19 08:09:38 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.rediris.es!news.cesca.es!not-for-mail
From: dcm <dd@dedonde.es>
Newsgroups: es.comp.os.linux.programacion
Subject: libxml y doc->children
Date: Tue, 19 Feb 2002 17:10:05 +0100
Organization: CESCA - Servidor de news de l'Anella Cientifica
Lines: 19
Message-ID: <pan.2002.02.19.17.10.04.687153.10261@dedonde.es>
NNTP-Posting-Host: mart.xtec.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: noucreus-atm.cesca.es 1014134975 26991 193.145.88.48 (19 Feb 2002 16:09:35 GMT)
X-Complaints-To: newsmanager@cesca.es
NNTP-Posting-Date: Tue, 19 Feb 2002 16:09:35 +0000 (UTC)
User-Agent: Pan/0.11.1 (Unix)
X-Comment-To: ALL