Skip to content
Fourohtwo

Convert XML text

agents.204-168-199-108.sslip.io/v1/util/xml-to-json

Convert XML text — or an XML document at a URL (RSS, Atom, SOAP, sitemaps, invoices, government data feeds) — to JSON: attributes as '@name', text with child elements as '#text', CDATA unwrapped, repeated elements become arrays. Entity declarations are refused (XXE-safe). Use when an API or feed only speaks XML.

BaseSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/util/xml-to-json

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.204-168-199-108.sslip.io/v1/util/xml-to-json?xml=%3Crss+version%3D%222.0%22%3E%3Cchannel%3E%3Ctitle%3ENews%3C%2Ftitle%3E%3Citem+id%3D%221%22%3E%3Ctitle%3EA%3C%2Ftitle%3E%3C%2Fitem%3E%3Citem+id%3D%222%22%3E%3Ctitle%3E%3C%21%5BCDATA%5BB+%26+C%5D%5D%3E%3C%2Ftitle%3E%3C%2Fitem%3E%3C%2Fchannel%3E%3C%2Frss%3E");
console.log(await res.json());

Example input

{
  "xml": "<rss version=\"2.0\"><channel><title>News</title><item id=\"1\"><title>A</title></item><item id=\"2\"><title><![CDATA[B & C]]></title></item></channel></rss>"
}

More from XML to JSON converterProvider status