cef_xml_reader_t

Structure that supports the reading of XML data via the libxml streaming API. The functions of this structure should only be called on the thread that creates the object.

version(cef && embedded_cef_bindings)
extern (C)
struct cef_xml_reader_t {
extern (System)
int function(cef_xml_reader_t* self) nothrow move_to_next_node;
extern (System)
int function(cef_xml_reader_t* self) nothrow close;
extern (System)
int function(cef_xml_reader_t* self) nothrow has_error;
}

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

get_attribute_byindex
cef_string_userfree_t function(cef_xml_reader_t* self, int index) nothrow get_attribute_byindex;

Returns the value of the attribute at the specified 0-based index.

get_attribute_bylname
cef_string_userfree_t function(cef_xml_reader_t* self, const(cef_string_t)* localName, const(cef_string_t)* namespaceURI) nothrow get_attribute_bylname;

Returns the value of the attribute with the specified local name and namespace URI.

get_attribute_byqname
cef_string_userfree_t function(cef_xml_reader_t* self, const(cef_string_t)* qualifiedName) nothrow get_attribute_byqname;

Returns the value of the attribute with the specified qualified name.

get_attribute_count
size_t function(cef_xml_reader_t* self) nothrow get_attribute_count;

Returns the number of attributes.

get_base_uri
cef_string_userfree_t function(cef_xml_reader_t* self) nothrow get_base_uri;

Returns the base URI of the node. See http://www.w3.org/TR/xmlbase/ for additional details.

get_depth
int function(cef_xml_reader_t* self) nothrow get_depth;

Returns the node depth. Depth starts at 0 for the root node.

get_error
cef_string_userfree_t function(cef_xml_reader_t* self) nothrow get_error;

Returns the error string.

get_inner_xml
cef_string_userfree_t function(cef_xml_reader_t* self) nothrow get_inner_xml;

Returns an XML representation of the current node's children.

get_line_number
int function(cef_xml_reader_t* self) nothrow get_line_number;

Returns the line number for the current node.

get_local_name
cef_string_userfree_t function(cef_xml_reader_t* self) nothrow get_local_name;

Returns the local name. See http://www.w3.org/TR/REC-xml-names/#NT- LocalPart for additional details.

get_namespace_uri
cef_string_userfree_t function(cef_xml_reader_t* self) nothrow get_namespace_uri;

Returns the URI defining the namespace associated with the node. See http://www.w3.org/TR/REC-xml-names/ for additional details.

get_outer_xml
cef_string_userfree_t function(cef_xml_reader_t* self) nothrow get_outer_xml;

Returns an XML representation of the current node including its children.

get_prefix
cef_string_userfree_t function(cef_xml_reader_t* self) nothrow get_prefix;

Returns the namespace prefix. See http://www.w3.org/TR/REC-xml-names/ for additional details.

get_qualified_name
cef_string_userfree_t function(cef_xml_reader_t* self) nothrow get_qualified_name;

Returns the qualified name, equal to (Prefix:)LocalName. See http://www.w3.org/TR/REC-xml-names/#ns-qualnames for additional details.

get_type
cef_xml_node_type_t function(cef_xml_reader_t* self) nothrow get_type;

Returns the node type.

get_value
cef_string_userfree_t function(cef_xml_reader_t* self) nothrow get_value;

Returns the text value.

get_xml_lang
cef_string_userfree_t function(cef_xml_reader_t* self) nothrow get_xml_lang;

Returns the xml:lang scope within which the node resides. See http://www.w3.org/TR/REC-xml/#sec-lang-tag for additional details.

has_attributes
int function(cef_xml_reader_t* self) nothrow has_attributes;

Returns true (1) if the node has attributes.

has_value
int function(cef_xml_reader_t* self) nothrow has_value;

Returns true (1) if the node has a text value.

is_empty_element
int function(cef_xml_reader_t* self) nothrow is_empty_element;

Returns true (1) if the node represents an NULL element. "<a/>" is considered NULL but "<a></a>" is not.

move_to_attribute_byindex
int function(cef_xml_reader_t* self, int index) nothrow move_to_attribute_byindex;

Moves the cursor to the attribute at the specified 0-based index. Returns true (1) if the cursor position was set successfully.

move_to_attribute_bylname
int function(cef_xml_reader_t* self, const(cef_string_t)* localName, const(cef_string_t)* namespaceURI) nothrow move_to_attribute_bylname;

Moves the cursor to the attribute with the specified local name and namespace URI. Returns true (1) if the cursor position was set successfully.

move_to_attribute_byqname
int function(cef_xml_reader_t* self, const(cef_string_t)* qualifiedName) nothrow move_to_attribute_byqname;

Moves the cursor to the attribute with the specified qualified name. Returns true (1) if the cursor position was set successfully.

move_to_carrying_element
int function(cef_xml_reader_t* self) nothrow move_to_carrying_element;

Moves the cursor back to the carrying element. Returns true (1) if the cursor position was set successfully.

move_to_first_attribute
int function(cef_xml_reader_t* self) nothrow move_to_first_attribute;

Moves the cursor to the first attribute in the current element. Returns true (1) if the cursor position was set successfully.

move_to_next_attribute
int function(cef_xml_reader_t* self) nothrow move_to_next_attribute;

Moves the cursor to the next attribute in the current element. Returns true (1) if the cursor position was set successfully.

Meta