[XOM-interest] entity in attribute value

Andreas Prieß ap at metaphysis.net
Mon Jan 12 13:35:19 EST 2009


Luca Passani wrote:
> I need to store a string 
> which happens to have special meaning for XML. Either there is a way to 
> escape it (i.e. tell XML that this string does not have the special 
> meaning it thinks it has) or there isn't.

Don't you get your desired string if you just escape the ampersand?

<capability name="entity_euro" value="&amp;euro;"/>

The &amp; should be a predefined entity for the ampersand, I think.


Andreas


More information about the XOM-interest mailing list