|
zxsd 0.20.0
Embedded XML Schema validation for C
|
Bounded state for the event-driven validator. More...
#include <zxsd.h>

Data Fields | |
| const zxsd_schema_t * | schema |
| Generated schema being validated. | |
| zxsd_result_t | result |
| Sticky result of the first failed event. | |
| size_t | depth |
| Number of currently open elements. | |
| size_t | event_offset |
| Monotonic event index used in diagnostics. | |
| int | finished |
| Non-zero after a complete root element. | |
| zxsd_allocator_t | identity_allocator |
| Allocator for streamed identity validation. | |
| char * | identity_xml |
| Internal reconstructed XML buffer. | |
| size_t | identity_xml_length |
| Bytes used in identity_xml. | |
| size_t | identity_xml_capacity |
| Allocated reconstructed XML bytes. | |
| zxsd_stream_namespace_t | namespaces [16u] |
| Active QName bindings. | |
| size_t | namespace_count |
| Number of active entries in namespaces. | |
| zxsd_stream_model_node_t | model_nodes [128u] |
| Shared continuation/frontier storage; independent of document length. | |
| uint16_t | model_free |
| First free pool slot, or zero. | |
| uint16_t | model_high_water |
| Highest slot ever allocated; bounds interning scans. | |
| int | model_pool_initialized |
| Whether the lazy free list has been initialized. | |
| zxsd_stream_frame_t | frames [32u] |
| Fixed element stack. | |
Bounded state for the event-driven validator.
Initialize this object with zxsd_stream_init before sending events. Its storage is bounded by compile-time configuration constants. Identity constraints additionally use the configured allocator. Flat content models use counters. Nested sequences and choices use a shared, bounded continuation pool, including alternative repetition partitions. Zero ZXSD_STREAM_MODEL_CAPACITY selects the bounded history fallback.
| size_t zxsd_stream_t::depth |
| size_t zxsd_stream_t::event_offset |
| int zxsd_stream_t::finished |
| zxsd_stream_frame_t zxsd_stream_t::frames[32u] |
| zxsd_allocator_t zxsd_stream_t::identity_allocator |
| char* zxsd_stream_t::identity_xml |
| size_t zxsd_stream_t::identity_xml_capacity |
| size_t zxsd_stream_t::identity_xml_length |
Bytes used in identity_xml.
| uint16_t zxsd_stream_t::model_free |
| uint16_t zxsd_stream_t::model_high_water |
| zxsd_stream_model_node_t zxsd_stream_t::model_nodes[128u] |
| int zxsd_stream_t::model_pool_initialized |
| size_t zxsd_stream_t::namespace_count |
Number of active entries in namespaces.
| zxsd_stream_namespace_t zxsd_stream_t::namespaces[16u] |
| zxsd_result_t zxsd_stream_t::result |
| const zxsd_schema_t* zxsd_stream_t::schema |