Inheritance diagram for xmlpp::Node:
Public Types | |
typedef std::list< Node * > | NodeList |
Public Member Functions | |
Node (_xmlNode *node) | |
virtual | ~Node () |
std::string | get_name () const |
Get the name of this node. | |
void | set_name (const std::string &name) |
Set the name of this node. | |
void | set_namespace (const std::string &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. | |
std::string | get_namespace_prefix () const |
std::string | get_namespace_uri () const |
int | get_line () const |
Discover at what line number this node occurs in the XML file. | |
NodeList | get_children (const std::string &name=std::string()) |
Obtain the list of child nodes. | |
const NodeList | get_children (const std::string &name=std::string()) const |
Obtain the list of child nodes. | |
Element * | add_child (const std::string &name, const std::string &ns_prefix=std::string()) |
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. | |
std::string | get_path () const |
Return the XPath of this node. | |
NodeSet | find (const std::string &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.
|