Re: [xml] type of documents is a string??
- From: Andreas Pakulat <apaku gmx de>
- To: xml gnome org
- Subject: Re: [xml] type of documents is a string??
- Date: Mon, 19 Jun 2006 23:37:07 +0200
On 19.06.06 15:48:50, Andreas Pakulat wrote:
On 14.06.06 23:21:12, Andreas Pakulat wrote:
I'm resending this mail, as it seems that the mailing list has come back
to live (I can see the earlier post in the archive, but it never made it
back to me).
I'm using the python bindings of libxml2 2.6.26 and
doc=libxml2.parseFile('/home/andreas/temp/file1.xml')
print doc.type
document_xml
returns a string and not the expected value libxml2.XML_DOCUMENT_NODE.
Is that right? Am I doing something wrong?
This is even worse, libxml2 "translates" the types to some arbitrary
strings for at least document, element and text nodes and this is not
documented anywhere.
I'm going to file a bug report tomorrow, if there's nobody who can
explain this.
Andreas
--
Celebrate Hannibal Day this year. Take an elephant to lunch.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]