# JSON / XML API

When working with curated newsletters, FeedOtter makes it simple to use XML files for email content. Our new XML feature allows you to pull content and add it into your emails easier and more efficiently. FeedOtter users turn to XML when they have custom fields in RSS and need to control where items are currently looping in their feed. Below are step-by-step instructions on how to implement your XML feed.

#### Adding An XML Feed

First, go to the Gear icon > Settings > Content Sources. Then create a New Content Source. &#x20;

![](https://www.feedotter.com/wp-content/uploads/2022/03/New-image.png)

Here, Select Content Source Type (choose “XML”) and Name it a title of your choice. From there you can paste the XML URL in the following box.  Click Load XML.

&#x20;

![XML Content Source](https://www.feedotter.com/wp-content/uploads/2022/03/ex-2.png)

#### Repeating Elements: Title, Description, URL, and Date

After loading your XML file, you need to select where the items repeat in your XML. This aligns FeedOtter’s content fields with your XML content fields. Select Element Paths to go in-depth about what content you need in your newsletter.&#x20;

![XML Description](https://www.feedotter.com/wp-content/uploads/2022/03/ex-4.png)

#### Adding XML and JSON content to your emails

Once you have added the content source.  Proceed to create or edit a curated newsletter issue.  Click on the Add Content and select your new XML or JSON source by name.

If the feed is readable your content will appear in blocks that you can click on to add to your email.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.feedotter.com/curated-newsletters/content-sources/json-xml-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
