{"uid":"cap_u_oI88WctaRf_kK4PgWZx","slug":"delx-xml-escape-931d8238","name":"Delx XML Escape","description":"XML-escape text for safe embedding. Call when you build XML fragments from agent strings. Returns escaped text for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/xml-escape","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_YAyUwQ6-bNr43kTmN6p-I","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":"XML-escapes a text string so it can be safely embedded in XML fragments without breaking document structure","exampleAgentPrompt":"I need to embed this user-submitted text into an XML document — can you XML-escape it for me? The text is: 'AT&T <wireless> says \"hello\" & goodbye'.","exampleUseCases":[{"title":"Safe XML report generation","prompt":"I'm building an XML report and one of the field values is 'Revenue < $1M & EBITDA > $200K' — can you escape that string so it won't break the XML?"},{"title":"Sanitizing user input for SOAP API","prompt":"Before I send this user comment to our SOAP API, I need it XML-escaped: 'I bought a <new> phone & it's \"great\"!' — can you handle that?"},{"title":"Escaping product descriptions for RSS feed","prompt":"I'm generating an RSS feed item and the product description has ampersands and angle brackets in it: 'A & B widgets <deluxe> edition' — please escape it for XML embedding."}],"resultDescription":"Returns the input text with all XML-special characters converted to their entity equivalents (e.g. & → &amp;, < → &lt;, > → &gt;, \" → &quot;, ' → &apos;), making the string safe to embed within XML elements or attribute values.","failureModes":["Missing or empty 'text' field returns an error","Extremely large strings may be rejected or time out","Malformed JSON request body returns a 400-style error","Payment failure or insufficient USDC balance blocks the call"],"whenToPreferThis":"Use this endpoint when your agent is dynamically constructing XML documents, SOAP payloads, RSS feeds, or any XML-based format and needs to safely embed arbitrary user-supplied or computed strings. It is the right choice when you want a stateless, no-retention, local transformation with no external network calls, billed per-use via x402 on Base for $0.001 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:39.795Z","isFirstParty":false}