XmlNode
Object Hierarchy:
Description:
[ CCode ( ref_function = "rest_xml_node_ref" , type_id = "rest_xml_node_get_type ()" , unref_function = "rest_xml_node_unref" ) ]
[ Compact ]
public class XmlNode
The XmlNode contains a parsed XmlNode for easy consumption
Content:
Methods:
- public unowned XmlNode @ref ()
Increases the reference count of this.
- public void add_attr (string attribute, string value)
Adds attribute to the given node.
- public unowned XmlNode add_child (string tag)
Adds a new node to the given parent node; to create the top-level node,
parent should be null.
- public XmlNode find (string tag)
Searches for the first child node of this
named tag
.
- public unowned string get_attr (string attr_name)
Get the value of the attribute named attr_name
, or
null if it doesn't exist.
- public string print ()
Recursively outputs given node and it's children.
- public void set_content (string value)
Sets content for the given node.
- public void unref ()
Decreases the reference count of this.
Fields: