# Return XML instead of JSON

**URL:** <https://discuss.elastic.co/t/return-xml-instead-of-json/102456>\
**Category:** Elastic Community and Ecosystem\
**Created:** [October 2, 2017, 4:48pm UTC](https://discuss.elastic.co/t/return-xml-instead-of-json/102456 "2017-10-02T16:48:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![catnipper](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@catnipper](https://discuss.elastic.co/u/catnipper)\
**Post date:** [October 2, 2017, 4:48pm UTC](https://discuss.elastic.co/t/return-xml-instead-of-json/102456/1 "2017-10-02T16:48:39Z")

</div>

Hi,

I saw there was a plugin to serialize JSON to XML by adding a Header **Accept: application/xml** to the Query - but the plugin is only for older versions (2.3.x) of elasticsearch.

I checked the plugins for elasticsearch but did not yet find a suiteable option.  
Is there any other solution you may recommend to get XML formatted response?

What I would like to do is consume elasticsearch query results from a client expecting XML results.

Thx,  
Frank

---

<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:** [October 30, 2017, 4:48pm UTC](https://discuss.elastic.co/t/return-xml-instead-of-json/102456/2 "2017-10-30T16:48:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
