| Method | What it does |
| XmlText.parse(text) | A Document; errors carry line and column when the engine reports them. |
| XmlText.serialize(document, indent, declaration) | XML text: indented by indent spaces, or minified with 0; blank text is dropped, comments, CDATA and the doctype kept. |
| XmlText.declarationOf(text) | The <?xml …?> declaration, or null. |
| XmlText.decode(bytes) | { text } using the byte order mark, or { binary: "axml" | "bplist" }. |
| XmlText.find(document, query, limit) | Elements whose name, attributes, text or comments contain query. |
| XmlText.shownChildren(node), XmlText.inlineText(element) | The children worth showing (no blank text); the text of a text-only element. |
| XmlText.NODE | The node type numbers: { element, text, cdata, processingInstruction, comment, doctype }. |