Struct
RestXmlNode
unstable since: 1.0
Description [src]
struct RestXmlNode {
gchar* name;
gchar* content;
GHashTable* children;
GHashTable* attrs;
RestXmlNode* next;
}
The RestXmlNode contains a parsed XmlNode for easy consumption.
Structure members
nameThe name of the element.
contentThe textual content of the element.
childrenA
GHashTableof string name toRestXmlNodefor the children of the element.attrsA
GHashTableof string name to string values for the attributes of the element.nextThe sibling
RestXmlNodewith the same name.
Available since: 1.0
Instance methods
rest_xml_node_add_child
Adds a new node to the given parent node; to create the top-level node,
parent should be NULL.
unstable since: 1.0
rest_xml_node_get_attr
Get the value of the attribute named attr_name, or NULL if it doesn’t exist.
unstable since: 1.0
rest_xml_node_unref
Decreases the reference count of node. When its reference count drops to 0,
the node is finalized (i.e. its memory is freed).
unstable since: 1.0