|
Public Types |
typedef std::list< Node * > | NodeList |
typedef std::list< Attribute * > | AttributeList |
Public Member Functions |
| Node (_xmlNode *node) |
virtual | ~Node () |
std::string | get_name () const |
void | set_name (const std::string &name) |
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 |
NodeList | get_children (const std::string &name=std::string()) |
const NodeList | get_children (const std::string &name=std::string()) const |
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 |
NodeSet | find (const std::string &xpath) const |
_xmlNode * | cobj () |
| Access the underlying libxml implementation.
|
const _xmlNode * | cobj () const |
| Access the underlying libxml implementation.
|