# Trying to add xml example of response in swagger but it doesn\`t show

**URL:** <https://discuss.jsonapi.org/t/trying-to-add-xml-example-of-response-in-swagger-but-it-doesn-t-show/1812>\
**Category:** Uncategorized\
**Created:** [January 16, 2020, 9:08am UTC](https://discuss.jsonapi.org/t/trying-to-add-xml-example-of-response-in-swagger-but-it-doesn-t-show/1812 "2020-01-16T09:08:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![serban123](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/serban123/32/667_2.png) [@serban123](https://discuss.jsonapi.org/u/serban123)\
**Post date:** [January 16, 2020, 9:08am UTC](https://discuss.jsonapi.org/t/trying-to-add-xml-example-of-response-in-swagger-but-it-doesn-t-show/1812/1 "2020-01-16T09:08:08Z")

</div>

am building an API Documentation with Swagger and I am writing directly in Notepad++ in the JSON it all woks fine but now I have a POST request that has a response example of type xml. This is the code that I have written  
“/stareMesaj”:{  
“get”: {  
“summary”: “Returns a list of users”,  
“description”: “Blabla bla”,  
“produces”: [  
“application/xml”  
],  
“responses”: {  
“200”: {  
“description”: “ok”,  
“examples”: {  
“application/xml”: “AliceBob”  
}  
}  
}  
}  
}  
}

Can you please give me advice on what is wrong because when I convert it to html with redoc it doesnt show any response example on the right side of the page.

Thanks in advance
