[Zope] special characters in XML

Daniel de la Cuesta daniel.cuesta at iavante.es
Fri Dec 15 07:05:39 EST 2006


Hello,

I am using a page template to geneate a valid XML document, this is the
template:

<?xml version="1.0" encoding="UTF-8"?>
<person xmlns:tal="http://xml.zope.org/namespaces/tal">
    <name tal:content="string:&hello">
      Mi mobile
    </name>
</person>

The caracter "&" gives me the following error:


Compilation failed
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 3, column 38



If I remove the "&" everything goes ok. What can I do??

Thank you
    











-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20061215/c97ba13f/attachment.htm


More information about the Zope mailing list