Skip to content

feat: Add streaming XML tokenizer with error handling and listeners - #16

Merged
XenoSnowFox merged 1 commit into
mainfrom
feature/xml-stream-parser
Aug 26, 2026
Merged

feat: Add streaming XML tokenizer with error handling and listeners#16
XenoSnowFox merged 1 commit into
mainfrom
feature/xml-stream-parser

Conversation

@XenoSnowFox

Copy link
Copy Markdown
Contributor

Introduce a streaming XML tokenizer: adds TokenizationError enum, XmlTokenListener interface, XmlStreamTokenizer header and implementation. The tokenizer processes input streams, emits events (open/close tags, declarations, attributes, text), handles comments, CDATA, self-closing tags and declarations, and reports errors (malformed input, buffer exhaustion). Includes configurable max buffer size via macro and listener error callback.

Introduce a streaming XML tokenizer: adds TokenizationError enum, XmlTokenListener interface, XmlStreamTokenizer header and implementation. The tokenizer processes input streams, emits events (open/close tags, declarations, attributes, text), handles comments, CDATA, self-closing tags and declarations, and reports errors (malformed input, buffer exhaustion). Includes configurable max buffer size via macro and listener error callback.
@XenoSnowFox
XenoSnowFox merged commit 800a335 into main Aug 26, 2026
4 checks passed
@XenoSnowFox
XenoSnowFox deleted the feature/xml-stream-parser branch August 26, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant