# How to read a XML file

**URL:** <https://forum.cloverdx.com/t/how-to-read-a-xml-file/12>\
**Category:** CloverDX Platform\
**Created:** [March 9, 2007, 12:00am UTC](https://forum.cloverdx.com/t/how-to-read-a-xml-file/12 "2007-03-09T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![e.puigvivacances.fr](https://avatars.discourse-cdn.com/v4/letter/e/97f17d/32.png) [@e.puigvivacances.fr](https://forum.cloverdx.com/u/e.puigvivacances.fr)\
**Post date:** [March 9, 2007, 12:00am UTC](https://forum.cloverdx.com/t/how-to-read-a-xml-file/12/1 "2007-03-09T00:00:00Z")

</div>

Hi,

I will like to know if it’s possible to have a xml file as an imput. And in that case, how do I define the delimeter.

Thanks.

---

<div class="post-metadata">

**Author:** ![dpavlis](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dpavlis](https://forum.cloverdx.com/u/dpavlis)\
**Post date:** [March 10, 2007, 7:21pm UTC](https://forum.cloverdx.com/t/how-to-read-a-xml-file/12/2 "2007-03-10T19:21:19Z")

</div>

Clover has component named XMLExtract which handles XML data - even with hierarchies.  
See [http://wiki.clovergui.net/doku.php?id=c … xmlextract](http://wiki.clovergui.net/doku.php?id=components:readers#xmlextract) or download CloverETL Examples ([http://www.cloveretl.org/download/examples/](http://www.cloveretl.org/download/examples/)) where you can find two sample graphs using XMLExtract component.

---

<div class="post-metadata">

**Author:** ![dpavlis](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dpavlis](https://forum.cloverdx.com/u/dpavlis)\
**Post date:** [March 13, 2009, 1:05pm UTC](https://forum.cloverdx.com/t/how-to-read-a-xml-file/12/3 "2009-03-13T13:05:50Z")

</div>

Other XML reader in Clover is XMLXPathReader which is using XPath expressions to extract data from XML.

See [http://wiki.cloveretl.org/doku.php?id=components:readers#xmlxpathreader](http://wiki.cloveretl.org/doku.php?id=components:readers#xmlxpathreader)

For writing/creating XML documents, use XMLWriter:  
[http://wiki.cloveretl.org/doku.php?id=components:writers#xmlwriter](http://wiki.cloveretl.org/doku.php?id=components:writers#xmlwriter)
