[Python-de] XML mit LXML einlesen , wobei die Struktur nicht alltäglich ist.

Andreas Jung lists at zopyx.com
Di Mär 24 15:32:16 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24.03.2009 14:56 Uhr, Thomas Gebhard wrote:

>>   
> Das habe ich jetzt schon ausprobiert, jedoch bekomme ich die Meldung
> dass die Angegebene URI nicht gültig ist:
> <root xmlns:source="" xmlns:weblog="" xmlns:dc="" xmlns:atom="">
> lxml.etree.XMLSyntaxError: xmlns:source: '' is not a valid URI, line 1,
> column 19
>
Die Fehlermeldung ist selbstsprechend. Alle Namespace Deklarationen via
xmlns:XXXX benötigen eine URL als Wert. Näheres erklärt Dir jedes XML
Tutorial.

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAknI7u8ACgkQCJIWIbr9KYykqgCgtuVUc7150BWeAr+QAHn5D87l
DSYAniZ8eeufmK95s/e7RSM0QU7aDDO6
=6c2i
-----END PGP SIGNATURE-----
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : lists.vcf
Dateityp    : text/x-vcard
Dateigröße  : 316 bytes
Beschreibung: nicht verfügbar
URL         : <http://mail.python.org/pipermail/python-de/attachments/20090324/a9d7fb92/attachment.vcf>


Mehr Informationen über die Mailingliste python-de