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: [email protected] => 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]
