Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] entity in attribute value

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Andreas Prieß <ap AT metaphysis.net>
  • To: Luca Passani <passani AT eunet.no>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] entity in attribute value
  • Date: Mon, 12 Jan 2009 19:35:19 +0100

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




Archive powered by MHonArc 2.6.24.

Top of Page