# How to return xml in GoogleShopping plugin?

**URL:** <https://forum.litium.com/t/how-to-return-xml-in-googleshopping-plugin/994>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [July 24, 2019, 3:21pm UTC](https://forum.litium.com/t/how-to-return-xml-in-googleshopping-plugin/994 "2019-07-24T15:21:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![firozmohamed](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@firozmohamed](https://forum.litium.com/u/firozmohamed)\
**Post date:** [July 24, 2019, 3:21pm UTC](https://forum.litium.com/t/how-to-return-xml-in-googleshopping-plugin/994/1 "2019-07-24T15:21:26Z")

</div>

Litium version: 7

Hi,  
In Litium 7, I am using Litium.Studio.AddOns.PriceAgents  
in GoogleShopping plugin I want to return response as xml,  
I tried setting  
public string ContentType  
{  
get { return “text/xml”; }  
}  
also tried application/xml, but I am getting the below error in response,

This page contains the following errors:  
error on line 1 at column 1: Document is empty  
Below is a rendering of the page up to the first error.

If any one has done this, please let me know.

or should I implement a custom logic in Render method.

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [July 25, 2019, 7:19am UTC](https://forum.litium.com/t/how-to-return-xml-in-googleshopping-plugin/994/2 "2019-07-25T07:19:42Z")

</div>

The default implementation of the Google Shopping feed in Litium 7 generates a XML document, have you made a custom implementation to suit a specific need?  
[https://docs.litium.com/documentation/litium-documentation/products/price-agents/google-shopping](https://docs.litium.com/documentation/litium-documentation/products/price-agents/google-shopping)

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [July 27, 2019, 4:25pm UTC](https://forum.litium.com/t/how-to-return-xml-in-googleshopping-plugin/994/3 "2019-07-27T16:25:50Z")

</div>

To create an own price agent feed you need to implement all the properties and methods on the `Litium.Web.Products.PriceAgents.IPriceAgent` interface.

Not sure if you building your own Google Shopping Feed or what you are doing. Litium is pre-build with a Google Shopping Feed that can be used out of the box.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [August 24, 2019, 4:25pm UTC](https://forum.litium.com/t/how-to-return-xml-in-googleshopping-plugin/994/4 "2019-08-24T16:25:51Z")

</div>

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