<xsp:logic>
String xml = getStringFromReader(bufferedReader);
</xsp:logic>
<util:include-expr>
<util:expr><xsp:expr>xml</xsp:expr></util:expr></util:include-expr>


This should do the trick
Note: getStringFromReader is an abstraction, you need to write the code
to do the exact extraction of xml string  from buffered reader
Ensure that there is no whitespace between the <util:include-expr> and
<util:expr> elements.

Regds,
Chiths


-----Original Message-----
From: Paolo Scaffardi [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 23, 2002 3:11 AM
To: 'Cocoon-Users'
Subject: How to extract XML data from BufferedReader?

I have a XSP page that executes a local process that returns a valid XML
file to standard output. I have a BufferedReader to read from its
output, and that's what i should do:

- Extract the XML tree
- Extract nodes from that tree
- Insert that XML tree into current code position

How can i do that?

Thank you!

ByeBye,
Paolo Scaffardi
Embedded Linux Developer

AIRVENT SAM S.p.A.
via Macanno 32 - 47900 Rimini 
ITALY
Tel. 0541 383294 
Fax. 0541 387086



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>

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

Reply via email to