# Reading and Writing XML files in CloverETL

**URL:** <https://forum.cloverdx.com/t/reading-and-writing-xml-files-in-cloveretl/239>\
**Category:** CloverDX Platform\
**Created:** [November 7, 2007, 12:00am UTC](https://forum.cloverdx.com/t/reading-and-writing-xml-files-in-cloveretl/239 "2007-11-07T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crfpkr](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@crfpkr](https://forum.cloverdx.com/u/crfpkr)\
**Post date:** [November 7, 2007, 12:00am UTC](https://forum.cloverdx.com/t/reading-and-writing-xml-files-in-cloveretl/239/1 "2007-11-07T00:00:00Z")

</div>

Hi

I was looking any help / documentation on how to read and write XML files from/to the data in database. Can anyone please help/guide me in this regard.

Regards

crfpkr

---

<div class="post-metadata">

**Author:** ![jausperger](https://avatars.discourse-cdn.com/v4/letter/j/6bbea6/32.png) [@jausperger](https://forum.cloverdx.com/u/jausperger)\
**Post date:** [November 7, 2007, 10:57am UTC](https://forum.cloverdx.com/t/reading-and-writing-xml-files-in-cloveretl/239/2 "2007-11-07T10:57:06Z")

</div>

Hi,

try [http://wiki.clovergui.net/doku.php](http://wiki.clovergui.net/doku.php) for documentation.

You can use structure formatter class (StructureFormatter.class) that can create also a xml file or a WritableByteChannel via setDataTarget method. The Reformat component can use java code directly.

Xml file or a stream can be read by XMLExtract(the most fast) and setInputSource method or XPathParser and parseXPath method.

With regards,

austy
