{"uid":"cap_AIK4L_6YT2cZ-QSZnXRri","slug":"delx-commerce-xml-escape-50f49047","name":"Delx Commerce XML Escape","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/xml-escape?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Input field: text."}}},"responseSchema":{"type":"json","example":{"text":"a &lt;b&gt; &amp; &apos;c&apos;","schema":"delx/util-xml-escape/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hQXulZLYBlhvnP3AkJnUb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Escapes special XML characters in a text string, returning a safely encoded version suitable for embedding in XML documents.","exampleAgentPrompt":"Can you XML-escape this string for me: 'Hello <world> & 'friends'\" — I need to safely embed it inside an XML element?","exampleUseCases":[{"title":"Sanitizing user input for XML feed","prompt":"I'm building an RSS feed and one of my article titles contains ampersands and angle brackets — can you XML-escape this string for me: 'Rock & Roll <Live> Tour 2024'?"},{"title":"Preventing XML injection in generated documents","prompt":"Before I write this user-submitted comment into my XML config file, can you escape it so it won't break the XML? The text is: \"Admin's note: use <br> tags & quote 'carefully'\""},{"title":"Encoding product descriptions for XML export","prompt":"I need to export product data to an XML file — can you escape this product description so it's safe: 'Genuine 100% leather case & cover for <iPhone> models'?"}],"resultDescription":"Returns a JSON object containing the XML-escaped version of the input text, with characters like <, >, &, ', and \" replaced by their corresponding XML entities (&lt;, &gt;, &amp;, &apos;, &quot;), along with a schema identifier string.","failureModes":["Missing or empty 'text' field returns an error","Extremely large input strings may be rejected or time out","Malformed JSON request body returns a parse error","Network or payment processing failure via x402 protocol results in no response"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call XML character escaping operation without setting up any account or subscription. Ideal for agents that occasionally need to sanitize strings for XML documents and want verifiable, on-demand microtransaction pricing via USDC. Prefer this over a local utility when operating in a serverless or constrained environment where importing XML libraries is not practical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:06.682Z","isFirstParty":false,"canonicalSlug":"delx-commerce-xml-escape-50f49047"}