Hi Daniel,

wow, the luck is more helpful than me ! For the boolean flag, i don't know
it. Try to catch the ParseException in your XSP ?

Regards,

Ludovic
----- Original Message -----
From: "Daniel G. Pamintuan II" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 4:29 PM
Subject: Re: Inserting XML Strings


> Ludovic de Beaurepaire said:
> > Hi Daniel,
> >
> > Try this to insert XML strings :
> >
> > <util:include-expr><util:expr><xsp:expr>
> > yourXmlString
> > </xsp:expr></util:expr></util:include-expr>
> >
>
> Hello Ludovic,
>
> Thank you very much for your help! Now I know that the code generated from
> XSP depends on how you position the XSP tags (and the way XML is parsed).
> Originally I wrote...
>
> <util:include-expr>
>   <util:expr>
>     <xsp:expr>request.getParameter ("article")</xsp:expr>
>   <util:expr>
> </util:include-expr>
>
> then when I tried rewritting it to (thanks to you)...
>
> <util:include-expr>
>   <util:expr><xsp:expr>
>     <![CDATA[ "<tag>" + request.getParameter ("article") + "</tag>" ]]>
>   </xsp:expr><util:expr>
> </util:include-expr>
>
> the code works!!!
>
> I just have another problem now. Is there an existing function in Cocoon
> that would return a boolean flag whether a given XML string is
> well-formed?
>
> Thanks again!
>
> Daniel
>
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to