dump XML in file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

dump XML in file

Pascal Heus
Hi:
What's the easiest way to save the XML results from an XSLT into a file
on disk?
Should I use the oxf:file-serializer or is there a better/easier way?
thanks
*P



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: dump XML in file

Erik Bruchez
Administrator
Yes, the File serializer is it. Use it like this in 3.0 beta, in
conjunction with the XML converter:

<!-- Convert and serialize to XML -->
<p:processor name="oxf:xml-converter">
     <p:input name="config">
         <config>
             <encoding>utf-8</encoding>
         </config>
     </p:input>
     <p:input name="data" href="#document"/>
     <p:output name="data" id="converted"/>
</p:processor>

<!-- Write out document -->
<p:processor name="oxf:file-serializer">
     <p:input name="data" href="#converted"/>
     <p:input name="config">
         <config>
             <directory>C:/TEMP/</directory>
             <file>my-file.xml</file>
         </config>
     </p:input>
</p:processor>

-Erik

Pascal Heus wrote:
> Hi:
> What's the easiest way to save the XML results from an XSLT into a file
> on disk?
> Should I use the oxf:file-serializer or is there a better/easier way?
> thanks
> *P



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws