USE CASE · IN YOUR BROWSER

Convert XML from an address into JSON

Give AIVane the address of an XML document, such as a sitemap or an RSS or Atom feed. It finds the repeating entries, keeps up to the number you choose in their original order and writes them as a JSON array of objects. We converted the first 50 entries of the aivane.net sitemap; each became an object with loc and lastmod.

How it works

  1. Copy the converter. Choose Try it in your browser. The automation fetches the XML directly and reads the repeating entries.
  2. Enter the XML address. Use a sitemap, a feed or another XML file that answers without signing in, and set Maximum items.
  3. Choose JSON or CSV. Name the output with .json for a JSON array, or with .csv for one row per entry.

Try it on the practice site

  1. 01

    Open xml-to-json

    After you sign in from the Try it link, the automation is in My automations with three steps: fetch the XML document, collect the records and save the output file.

    The automation xml-to-json in My automations: Ready, 3 steps, Fetch the XML document, Collect the records and Save the output file
  2. 02

    Enter the address and run it

    Choose Run. XML address is https://aivane.net/sitemap.xml, Maximum items is 50 and Output file is xml-to-json.json. Choose Confirm and run.

    The Run automation dialog in AIVane Cloud with XML address https://aivane.net/sitemap.xml, Maximum items 50, Output file xml-to-json.json and the Confirm and run button
  3. 03

    Download xml-to-json.json

    Our run took 22 seconds. The file was a valid JSON array of 50 objects in sitemap order, starting with loc https://aivane.net/ and lastmod 2026-11-28.

    Run details of the succeeded cloud run xml-to-json: 22 seconds, Outputs lists xml-to-json.json with a Download button

How other methods compare

Online XML to JSON converters
Good for pasting one document. The automation fetches the XML from its address each time and can run on a schedule.
Writing a parser
A script gives full control over nesting and attributes. The automation covers the common case of repeating entries without code.
Spreadsheet import
Excel can import XML with a mapping. JSON output suits apps and scripts that expect a list of objects.

Frequently asked questions

Which elements become objects?

The repeating entries of the document, such as url in a sitemap or item in an RSS feed. Each child element becomes a field.

Can I get CSV instead of JSON?

Yes, name the output file with .csv. Our verified run produced JSON.

What if the server returns an error?

The automation writes the HTTP status into the output file instead of entries, so you can see what went wrong.

Is the converter free?

Free includes 3 saved automations, local runs of up to 15 minutes each and a one-time 10-minute AIVane Cloud trial. Our run used 25 seconds of cloud time.

Want a hand with this?

Our first users can ask for hands-on help: one website task, one sheet, and a week of watching it run.

Get help automating this task

Last verified 2026-11-28 with the AIVane web workspace at app.aivane.net (production server of 2026-11-28).