Bounded raw-XML reader feeding an event-driven validator.
More...
#include <zxsd.h>
Bounded raw-XML reader feeding an event-driven validator.
The object accepts arbitrary byte fragments and retains only an incomplete lexical token between calls. Initialize it with zxsd_xml_reader_init, then call zxsd_xml_reader_feed and zxsd_xml_reader_finish.
Definition at line 626 of file zxsd.h.
◆ decoded
| char zxsd_xml_reader_t::decoded[1024u+1u] |
Decoded text or attribute scratch.
Definition at line 637 of file zxsd.h.
◆ event_callback
Optional decoded-event observer.
Definition at line 634 of file zxsd.h.
◆ event_user_data
| void* zxsd_xml_reader_t::event_user_data |
Opaque observer context.
Definition at line 635 of file zxsd.h.
◆ markup
| unsigned char zxsd_xml_reader_t::markup |
Non-zero while retaining markup beginning with <.
Definition at line 632 of file zxsd.h.
◆ offset
| size_t zxsd_xml_reader_t::offset |
Total number of input bytes accepted.
Definition at line 629 of file zxsd.h.
◆ quote
| unsigned char zxsd_xml_reader_t::quote |
Active attribute quote, or zero.
Definition at line 633 of file zxsd.h.
◆ result
Sticky result of the first parser or validator error.
Definition at line 628 of file zxsd.h.
◆ token
| char zxsd_xml_reader_t::token[4096u+1u] |
Incomplete text or markup token.
Definition at line 636 of file zxsd.h.
◆ token_length
| size_t zxsd_xml_reader_t::token_length |
Bytes currently retained in token.
Definition at line 631 of file zxsd.h.
◆ token_offset
| size_t zxsd_xml_reader_t::token_offset |
Absolute offset of the retained token.
Definition at line 630 of file zxsd.h.
◆ validator
Event-driven validator receiving decoded XML events.
Definition at line 627 of file zxsd.h.
The documentation for this struct was generated from the following file: