# Getting XML/SGML into ElasticSearch? A new Node.js module might help

**URL:** <https://discuss.elastic.co/t/getting-xml-sgml-into-elasticsearch-a-new-node-js-module-might-help/17757>\
**Category:** Elasticsearch\
**Created:** [May 27, 2014, 4:19pm UTC](https://discuss.elastic.co/t/getting-xml-sgml-into-elasticsearch-a-new-node-js-module-might-help/17757 "2014-05-27T16:19:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![imbroglioj](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@imbroglioj](https://discuss.elastic.co/u/imbroglioj)\
**Post date:** [May 27, 2014, 4:19pm UTC](https://discuss.elastic.co/t/getting-xml-sgml-into-elasticsearch-a-new-node-js-module-might-help/17757/1 "2014-05-27T16:19:05Z")

</div>

xml-to-es is a new Node.js module that converts XML (or SGML) into a JSON  
object suitable for indexing with ElasticSearch. The problem I am  
addressing is the unsuitability of the raw JSON typically output by XML  
parsers. xml-to-es offers configuration options for "flattening" and  
streamlining the JSON that is produced. In addition to a conversion script,  
the example files include a script for pushing the output to ElasticSearch.  
xml-to-es supports other output options besides JSON: currently text and  
HTML are available. ([http://github.org/imbroglioj/xml-to-es.git](http://github.org/imbroglioj/xml-to-es.git) or as an  
npm module)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/cbe2ebc6-dbda-4ac9-90c3-4f4982aca496%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cbe2ebc6-dbda-4ac9-90c3-4f4982aca496%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:26am UTC](https://discuss.elastic.co/t/getting-xml-sgml-into-elasticsearch-a-new-node-js-module-might-help/17757/2 "2017-07-06T01:26:38Z")

</div>

Closed on July 6, 2017, 1:26am UTC


