Skip to content
Back to skills

Sandbox Xml

ASecurity

Parse XML feeds and sitemaps in a Code node or CodeAct action, with fast-xml-parser running on the host

  • 552 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 1, 2026
ai-agentsgonode

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 1, 2026

npx -y skills add nodetool-ai/nodetool --skill sandbox-xml --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sandbox Xml?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sandbox Xml
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nodetool-ai-sandbox-xml/badge)](https://www.skillsdirectory.com/skills/nodetool-ai-sandbox-xml)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sandbox-xml
description: Parse XML feeds and sitemaps in a Code node or CodeAct action, with fast-xml-parser running on the host
---

# XML in the sandbox

Specifier: `@nodetool-ai/sandbox-xml`. Import it at the top of the body.

fast-xml-parser reads a bare `window`, which the guest does not have, so it
cannot be compiled in. This pack is a **host module**: the import resolves to a
generated facade over NodeTool's own implementation.

## parse — XML to a plain object

```js
import { parse } from "@nodetool-ai/sandbox-xml";

const feed = await parse(inputs.xml);
const items = feed?.rss?.channel?.item ?? [];
return { titles: items.map((i) => i.title) };
```

Attributes ride along prefixed `@_` so they never collide with child-element
keys; pass `{ attributes: false }` to drop them. Text values stay text — a
numeric-looking id must not change shape between runs.

Invalid XML throws with the parser's own reason rather than returning a partial
tree.

## Gotchas

- **`parse` is async.**
- **5 MB of text per call.**
- **A single child is not an array.** `channel.item` is one object when the feed
  has one item; normalize with `[].concat(x ?? [])`.

Files in this skill

  • SKILL.md1.1 KB
  • package.json855 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.