[pyar] Unicode, XMLs y minidom
Facundo Batista
facundobatista en gmail.com
Mie Sep 11 20:14:24 ART 2013
2013/9/11 Federico Manuel Echeverri Choux <echeverrifm en gmail.com>:
> Hola!!!! Facuendo es correcto y si uso la primera opcion me dice esto
> use esto ahora:
> main = minidom.parseString(document)
>
> y me dice esto:
>
> Traceback (most recent call last):
> File "minidom_example1.py", line 25, in <module>
> main = minidom.parseString(document)
> File "/usr/lib/python2.7/xml/dom/minidom.py", line 1931, in parseString
> return expatbuilder.parseString(string)
> File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in
> parseString
> return builder.parseString(string)
> File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in
> parseString
> parser.Parse(string, True)
> xml.parsers.expat.ExpatError: not well-formed (invalid token): line 2,
> column 0
Mostranos qué da un print repr(document)
Slds.
--
. Facundo
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
Twitter: @facundobatista
More information about the pyar
mailing list