Skip to main content

Module reader

Module reader 

Source
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 XmlReader from 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.