cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Un-Escaping XML in transformer
Date Thu, 10 May 2007 14:37:28 GMT
Hi Cocooners,

I have a SAX stream containing fragments of escaped XML, e.g.

  <p> this is a &lt;a href="..."&gt;link&lt;/a&gt; </p>

and want to convert the characters into SAX events:

  <p> this is a <a href="...">link</a> </p>

I collect and assemble the character events, but I don't know how
to parse the resulting string and generate SAX events without
too much effort.

I tried StringXMLizable and XMLByteStreamInterpreter, but ran
into problems because contentHandler.startElement() is called
or the prolog is not correct.

What's the best way to do this?

TIA for any pointers!

-- Andreas



-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message