Saludos,
-- luismiguel
--
You received this message because you are subscribed to the Google Groups "Akara Developers" group.
To post to this group, send email to akar...@googlegroups.com.
To unsubscribe from this group, send email to akara-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akara-dev?hl=en.
doc.xml_encode('omit_xml_declaration=True')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/lm/entorno_iaaa/lib/python2.7/site-packages/amara/writers/__init__.py",
line 151, in _xml_encode
_xml_write(N, writer, stream, encoding, **kwargs)
File "/home/lm/entorno_iaaa/lib/python2.7/site-packages/amara/writers/__init__.py",
line 128, in _xml_write
writer_class = lookup(writer)
File "/home/lm/entorno_iaaa/lib/python2.7/site-packages/amara/writers/__init__.py",
line 101, in lookup
raise ValueError("Unknown printer class %r" % printer_name)
ValueError: Unknown printer class 'omit_xml_declaration=True'
I think I must use an intermediate xmlprinter class, don't I?
I tested with it before:
doc.xml_encode('html')
'<a></a>'
doc.xml_encode('xml')
'<?xml version="1.0" encoding="UTF-8"?>\n<a/>'
Saludos,
-- luismiguel
2011/5/13 Uche Ogbuji <uc...@ogbuji.net>: