Inheritance diagram for xmlpp::Node:

Public Types | |
| typedef std::list< Node * > | NodeList |
Public Member Functions | |
| Node (_xmlNode *node) | |
| virtual | ~Node () |
| Glib::ustring | get_name () const |
| Get the name of this node. | |
| void | set_name (const Glib::ustring &name) |
| Set the name of this node. | |
| void | set_namespace (const Glib::ustring &ns_prefix) |
| Set the namespace prefix used by the node If no such namespace prefix has been declared then this method will throw an exception. | |
| Glib::ustring | get_namespace_prefix () const |
| Glib::ustring | get_namespace_uri () const |
| int | get_line () const |
| Discover at what line number this node occurs in the XML file. | |
| NodeList | get_children (const Glib::ustring &name=Glib::ustring()) |
| Obtain the list of child nodes. | |
| const NodeList | get_children (const Glib::ustring &name=Glib::ustring()) const |
| Obtain the list of child nodes. | |
| Element * | add_child (const Glib::ustring &name, const Glib::ustring &ns_prefix=Glib::ustring()) |
| Add a child element to this node. | |
| void | remove_child (Node *node) |
| Remove the child node. | |
| Node * | import_node (const Node *node, bool recursive=true) |
| Import node(s) from another document under this node, without affecting the source node. | |
| Glib::ustring | get_path () const |
Return the XPath of this node
| |
| NodeSet | find (const Glib::ustring &xpath) const |
| Find nodes from a XPath expression. | |
| _xmlNode * | cobj () |
| Access the underlying libxml implementation. | |
| const _xmlNode * | cobj () const |
| Access the underlying libxml implementation. | |
You should never new or delete Nodes. The Parser will create and manage them for you.
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Add a child element to this node.
|
|
|
Access the underlying libxml implementation.
Reimplemented in xmlpp::Attribute. |
|
|
Access the underlying libxml implementation.
Reimplemented in xmlpp::Attribute. |
|
|
Find nodes from a XPath expression.
|
|
|
Obtain the list of child nodes. You may optionally obtain a list of only the child nodes which have a certain name.
|
|
|
Obtain the list of child nodes. You may optionally obtain a list of only the child nodes which have a certain name.
|
|
|
Discover at what line number this node occurs in the XML file.
|
|
|
Get the name of this node.
Reimplemented in xmlpp::Attribute. |
|
|
|
|
|
|
|
|
Return the XPath of this node
|
|
||||||||||||
|
Import node(s) from another document under this node, without affecting the source node.
|
|
|
Remove the child node.
|
|
|
Set the name of this node.
|
|
|
Set the namespace prefix used by the node If no such namespace prefix has been declared then this method will throw an exception.
|
1.4.2