parent can be NULL
Adds the given node as child of this node. To attach a second children to this node, use the set_next_xml_node function of the child node.
Appends a property with given name and value to the list of properties for this node.
Deletes a wxXmlNode object (use this instead of delete_instance or destroy)
Removes the first properties which has the given name from the list of properties for this node.
Returns a pointer to the sibling of this node or NULL if there are no siblings.
Returns a pointer to the parent of this node or NULL if this node has no parent.
Returns the content of this node. Can be an empty string. Be aware that for nodes of type wxXML_ELEMENT_NODE (the most used node type) the content is an empty string. See get_xml_node_content for more details.
Returns the first child of this node. To get a pointer to the second child of this node (if it does exist), use the get_next_xml_node function on the returned value.
Returns the content of the first child node of type wxXML_TEXT_NODE or wxXML_CDATA_SECTION_NODE. This function is very useful since the XML snippet "<tagname>tagcontent</tagname>" is represented by expat with the following tag tree:
wxXML_ENTITY_NODE name="tagname", content="" |-- wxXML_TEXT_NODE name="", content="tagcontent"
wxXML_ENTITY_NODE name="tagname", content="" |-- wxXML_CDATA_SECTION_NODE name="", content="tagcontent"
Returns the number of nodes which separe this node from grandparent.
This function searches only the parents of this node until it finds grandparent or the NULL node (which is the parent of non-linked nodes or the parent of a wxXmlDocument's root node).
Returns the name of this node. Can be an empty string (e.g. for nodes of type wxXML_TEXT_NODE or wxXML_CDATA_SECTION_NODE).
Return a pointer to the first property of this node.
Returns the value of the property named prop_name if it does exist. If it does not exist, the default is returned.
Returns the type of this node.
Inserts the child node immediately before before_node in the children list. If before_node is NULL, then child is prepended to the list of children and becomes the first child of this node. Returns true if before_node has been found and the child node has been inserted.
Returns true if the content of this node is a string containing only whitespaces (spaces, tabs, new lines, etc). Note that this function is locale-independent since the parsing of XML documents must always produce the exact same tree regardless of the locale it runs under.
Removes the given node from the children list. Returns true if the node was found and removed or false if the node could not be found.
Note that the caller is reponsible for deleting the removed node in order to avoid memory leaks.
Sets as sibling the given node. The caller is responsible to delete any previously present sibling node.
Sets as parent the given node. The caller is responsible to delete any previously present parent node.
Sets as first child the given node. The caller is responsible to delete any previously present children node.
Sets the content of this node.
Sets the name of this node.
Sets as first property the given wxXmlProperty object. The caller is responsible to delete any previously present properties attached to this node.
Sets the type of this node.
Returns true if this node has a property named prop_name.