Dear Allan,

In data giovedì 17 gennaio 2013 12:39:16, Allan Oware ha scritto:
> Hi Ferran,
> I've found out a "&" character in a tag value was the cause of the error,
> not the presence of empty tag values (seems like that was solved in v1.0.1).
> Doing away with "&" isnt feasible since url fields (web url and intranet
> url) all contain the "&" character.
> 
> Any thoughts, or should i consider upgrading to the latest invenio ?

how do you generate your XML? Values in subfields should be well escaped in 
order to be compatible with XML. For this reason you should translate any:

'&' -> '&'
'<' -> '&lt;'

If you use Python there is a utility in Invenio to do that:

from invenio.textutils import encode_for_xml

Best regards,
        Samuele

-- 
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>

Reply via email to