This repository was archived by the owner on Jul 4, 2026. It is now read-only.
Complete rewrite of the parser.
- Single pass byte-level tokenizer: about 5x faster parsing and 100x faster serialization than 1.x, typical rich text strings parse in about 0.1ms
- Fully typed strict Luau, const everywhere,
--!native+--!optimize 2 - New node shape (breaking): attributes are
{Name, Value}arrays with raw values, text lives inNode.Text Node:GetAttribute/Node:GetTextdecode entities;XML.Escape/XML.Unescapehelpers includingAandAnumeric forms- Handles
>inside quoted attributes, auto-closes unclosed tags, keeps trailing text - Modular
src/layout (init, Parser, Serializer, Node, Entities) with string requires - Published on wally:
perthys/xmlparser@2.0.0
Attached: XMLParser-2.0.0.rbxm, drop it into ReplicatedStorage and require the XML ModuleScript.