Hi thanks for your reply but unfortunately it didn't help much. I am getting the String variable from a method call which returns a chunK of XML data from an XML db. Then I need to pass this data to the Trasformer. All the XSP generator does is process the request and generate the appropriate XML.

I tried your code and here is what will the XML output by the XSP generator be:

<page>
  <greeting>
   &lt;greeting&gt;Hello&lt;/greeting&gt;
 </greeting>
</page>


Hope my question is more cleat now. I wish to avoid parsing the xml string in he XSP logic. Thanks for your patience to reply.

Regards,
Marco.


[EMAIL PROTECTED]

10/03/2004 10:03

Please respond to
[EMAIL PROTECTED]

To
[EMAIL PROTECTED]
cc
Subject
Re: Generating XML from s String containing XML content





On Wed, 10 Mar 2004 [EMAIL PROTECTED] wrote:

> 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>
>
somethink like

<page>
 <greeting>
    <xsp:expr>variable</xsp:expr>
 </greeting>
</page>


dont feet in your case?

-- stavros

> 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to