commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@gmail.com>
Subject Re: [Betwixt] Unescaped characters
Date Mon, 09 Oct 2006 15:52:27 GMT
On 10/9/06, Niall Pemberton <niall.pemberton@gmail.com> wrote:
> On 10/9/06, KSchaeuble@netzgiganten.de <KSchaeuble@netzgiganten.de> wrote:
> > Hi,
> > I use Betwixt to create Xml documents for my Ajax app.
> > The IE now tells me that there are invalid characters (I guess it is the
> > "&amp;").
> > So how can I tell the Writer to escape certain characters?
> > I saw that there are some strategies but no default implementation. How
> > should such a strategy look like?
>
> I haven't actually used betwixt, but there is a base
> MixedContentEncodingStrategy where all you have to do is indicate
> whether a specific element should be encoded as CDATA or escaped:

Sorry, wrong link:
    http://tinyurl.com/j6shp

>
> That base class uses the XMLUtils in betwixt:
>    http://tinyurl.com/ewxgy
>
> Commons Lang also has a function for escaping XML - so maybe you could
> use that to create an implementation:
>
>    http://tinyurl.com/jd85z
>
> Niall
>
> > Thanks alot!
> > Karola
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message