You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xsp-dev@xml.apache.org by Ma...@go.com.mt on 2004/03/10 09:51:56 UTC

Generating XML from a String containing XML content

Hi,
Inside my XSP I am calling a method which returns a String with XML 
content. When I try to output the content of the string, it is treated as 
CDATA.

eg. String xml = "<greeting>Hello</Greeting>
<page>
  <xsp:expr>xml</xsp:expr>
</page>

What I need from the example above is to generate the xml:
<page>
  <greeting>Hello</greeting>
</page>

and pass it to an XSLT transformer from the sitemap.

Can anyone help me with this?

Thanks and Regards,
Marco.