Skip to content
This repository was archived by the owner on Jul 4, 2026. It is now read-only.

v2.0.0

Latest

Choose a tag to compare

@Perthys Perthys released this 04 Jul 00:04

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 in Node.Text
  • Node:GetAttribute / Node:GetText decode entities; XML.Escape / XML.Unescape helpers including A and A numeric 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.