# How to index full xml file into ElasticSearch

**URL:** <https://discuss.elastic.co/t/how-to-index-full-xml-file-into-elasticsearch/39694>\
**Category:** Elasticsearch\
**Created:** [January 20, 2016, 7:40pm UTC](https://discuss.elastic.co/t/how-to-index-full-xml-file-into-elasticsearch/39694 "2016-01-20T19:40:58Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![sdaruna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sdaruna/32/7289_2.png) [@sdaruna](https://discuss.elastic.co/u/sdaruna)\
**Post date:** [January 20, 2016, 9:14pm UTC](https://discuss.elastic.co/t/how-to-index-full-xml-file-into-elasticsearch/39694/6 "2016-01-20T21:14:36Z")

</div>

Hi Magnus,

We are planning to use Distributed computing framework like Spark to work on top of ES.  
If we store whole xml data as text in ES, and parse it, it would be double work.

Splunk has a feature to work on top of xmls. If you specify a breaking String or Xpath, it will break the data repeatedly there and provides you events. To above xml, we will get list of `<Record>` nodes.

Does ES have any such solution.? Lets say if i specify as line breaker, can it give all the events of file by breaking by that string while search.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-index-full-xml-file-into-elasticsearch/39694)._
