Public Methods | |
Element (_xmlNode *node) | |
virtual | ~Element () |
void | set_namespace_declaration (const std::string &ns_uri, const std::string &ns_prefix=std::string()) |
This adds a namespace declaration to this node which will apply to this node and all children. | |
AttributeList | get_attributes () const |
Attribute * | get_attribute (const std::string &name, const std::string &ns_prefix=std::string()) const |
Attribute * | set_attribute (const std::string &name, const std::string &value, const std::string &ns_prefix=std::string()) |
Set the value of the attribute with this name, and optionally with this namespace. | |
void | remove_attribute (const std::string &name, const std::string &ns_prefix=std::string()) |
Remove the attribute with this name, and optionally with this namespace. | |
TextNode * | get_child_content () |
const TextNode * | get_child_content () const |
TextNode * | add_content (const std::string &content=std::string()) |
void | set_child_content (const std::string &content) |
bool | has_content () const |
Protected Methods | |
std::string | get_namespace_uri_for_prefix (const std::string &ns_prefix) const |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Remove the attribute with this name, and optionally with this namespace.
|
|
Set the value of the attribute with this name, and optionally with this namespace. A matching attribute will be added if no matching attribute already exists. For finer control, you might want to use get_attribute() and use the methods of the Attribute class.
|
|
|
|
This adds a namespace declaration to this node which will apply to this node and all children.
|