Expand description
Streaming XML for files of any size, for the structure panel: the child elements of an
element, page by page; the element at a path such as /catalog/item[1234]/price (1-based,
like XPath); and the path of the element at an offset. Elements are skipped with a byte loop
over tags, comments, CDATA and processing instructions, so nothing is held as a tree. UTF-8
(or another ASCII-compatible encoding) only.
Structs§
- XStep
- A path step: an element name and its 1-based position among the siblings of that name.
Functions§
- children
- The child elements of the element at
at(a<), up tomaxof them, fromresume. - format_
path - parse_
path - Parses
/catalog/item[3]/price(an index of 1 can be left out). - path_at
- The path of the innermost element around
off. - resolve
- The byte range of the element at
path. - root
- Offset of the root element (after the prolog, comments and the DOCTYPE).