Hi Jarry, the simplest possibility is to use the source writing transformer (http://cocoon.apache.org/2.1/userdocs/transformers/sourcewriting-transforme r.html). You just have to modify your XQuery statement, to get the xml which would be expected by the transformer (or you can leave your query as it is and transform your result by xslt). The source writing transformer is quite simple, works fine and you can find a good explanation in the userdocs.
Best regards - Claus __________________________________________ http://www.spvgg-feldmoching.de Claus Straube Francéstrasse 31 80997 München +49 (089) 14 16 682 => -----Ursprüngliche Nachricht----- => Von: Jarry Liu [mailto:[EMAIL PROTECTED] => Gesendet: Freitag, 3. Juni 2005 22:28 => An: users@cocoon.apache.org => Betreff: Can I save the result to a xml file? => => Hi all, => => I use XPathQuery get some information from xmldb. How can I save the => result to a file? => Thanks in advance. => => Jarry => => --------------------------------------------------------------------- => To unsubscribe, e-mail: [EMAIL PROTECTED] => For additional commands, e-mail: [EMAIL PROTECTED] => --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]