Expand description
FFI wrappers for the XmlReader pull-based streaming API.
Structs§
- FfiReader
- FFI-safe reader that owns the input string.
Constants§
- XMLOXIDE_
READER_ ATTRIBUTE - Attribute.
- XMLOXIDE_
READER_ CDATA - CDATA section.
- XMLOXIDE_
READER_ COMMENT - XML comment.
- XMLOXIDE_
READER_ DOCUMENT_ TYPE - Document type declaration.
- XMLOXIDE_
READER_ ELEMENT - Element start tag.
- XMLOXIDE_
READER_ END_ DOCUMENT - End of document.
- XMLOXIDE_
READER_ END_ ELEMENT - Element end tag.
- XMLOXIDE_
READER_ NONE - No node (reader not yet advanced).
- XMLOXIDE_
READER_ PI - Processing instruction.
- XMLOXIDE_
READER_ TEXT - Text node.
- XMLOXIDE_
READER_ WHITESPACE - Whitespace-only text.
- XMLOXIDE_
READER_ XML_ DECLARATION - XML declaration.
Functions§
- xmloxide_
reader_ ⚠attribute_ count - Returns the number of attributes on the current element.
- xmloxide_
reader_ ⚠depth - Returns the depth of the current node in the document tree.
- xmloxide_
reader_ ⚠free - Frees a reader. Passing null is safe and does nothing.
- xmloxide_
reader_ ⚠get_ attribute - Returns the value of an attribute by name on the current element, or null.
- xmloxide_
reader_ ⚠has_ value - Returns whether the current node has a value.
- xmloxide_
reader_ ⚠is_ empty_ element - Returns whether the current element is a self-closing (empty) element.
- xmloxide_
reader_ ⚠local_ name - Returns the local name of the current node (without prefix), or null.
- xmloxide_
reader_ ⚠move_ to_ element - Moves the reader back to the element from an attribute.
- xmloxide_
reader_ ⚠move_ to_ first_ attribute - Moves the reader to the first attribute of the current element.
- xmloxide_
reader_ ⚠move_ to_ next_ attribute - Moves the reader to the next attribute of the current element.
- xmloxide_
reader_ ⚠name - Returns the name of the current node, or null.
- xmloxide_
reader_ ⚠namespace_ uri - Returns the namespace URI of the current node, or null.
- xmloxide_
reader_ ⚠new - Creates a new
XmlReaderfrom a null-terminated UTF-8 string. - xmloxide_
reader_ ⚠node_ type - Returns the node type of the current node.
- xmloxide_
reader_ ⚠prefix - Returns the namespace prefix of the current node, or null.
- xmloxide_
reader_ ⚠read - Advances the reader to the next node.
- xmloxide_
reader_ ⚠value - Returns the value of the current node (text content, comment, etc.), or null.