You could use Saxon e.g. :-
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://saxon.sf.net/">
<xsl:template match="/">
<xsl:copy-of select="saxon:parse(XPathToYourXMLAsTextHere)"/>
</xsl:template>
</xsl:stylesheet>
On 29/02/2008, dkropotova <[EMAIL PROTECTED]> wrote:
>
>
> Dear all,
>
> I am using SOLR to store my xml files, that have been xml-escaped
> beforehand
> (so that now they are simply treated as text).
>
> When a search is performed and results are back, I now would like to
> restore
> my "escaped" xml. I created a simple transformer, but now I'm stuck on how
> to solve my problem. I got all escaped xml in a field, but now I need to
> convert it to xml or SAX events. I've searched, but couldn't find any
> method
> that would accept string and try to do something useful with it – like
> converting in SAX events or DOM objects.
>
> Does anyone have any tips how to solve this problem??
>
> Many thanks in advance,
> Dasha
>
> --
> View this message in context:
> http://www.nabble.com/Convert-escaped-xml-back-to-xml-or-SAX-events-tp15761385p15761385.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>