cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chitharanjan Das" <c...@accordiasys.com>
Subject RE: How to extract XML data from BufferedReader?
Date Tue, 23 Apr 2002 18:25:10 GMT
<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:lavoro@arsenio.net] 
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>




---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message