libxml++
2.35.2
|
Represents an XML Node attribute. More...
#include <libxml++/attribute.h>
Public Member Functions | |
Attribute (_xmlNode* node) | |
virtual | ~Attribute () |
Glib::ustring | get_name () const |
Get the name of this attribute. | |
Glib::ustring | get_value () const |
Get the value of this attribute. | |
void | set_value (const Glib::ustring& value) |
Set the value of this attribute. | |
_xmlAttr* | cobj () |
Access the underlying libxml implementation. | |
const _xmlAttr* | cobj () const |
Access the underlying libxml implementation. |
Represents an XML Node attribute.
This will be instantiated by the parser.
xmlpp::Attribute::Attribute | ( | _xmlNode * | node | ) | [explicit] |
virtual xmlpp::Attribute::~Attribute | ( | ) | [virtual] |
_xmlAttr* xmlpp::Attribute::cobj | ( | ) |
Access the underlying libxml implementation.
If this is an AttributeDeclaration, use AttributeDeclaration::cobj() instead. This method is here for backward compatibility. It may be moved to AttributeNode in the future.
Reimplemented from xmlpp::Node.
Reimplemented in xmlpp::AttributeDeclaration.
const _xmlAttr* xmlpp::Attribute::cobj | ( | ) | const |
Access the underlying libxml implementation.
If this is an AttributeDeclaration, use AttributeDeclaration::cobj() instead. This method is here for backward compatibility. It may be moved to AttributeNode in the future.
Reimplemented from xmlpp::Node.
Reimplemented in xmlpp::AttributeDeclaration.
Glib::ustring xmlpp::Attribute::get_name | ( | ) | const |
Get the name of this attribute.
See also Node::get_namespace_prefix() and Node::get_namespace_uri()
Reimplemented from xmlpp::Node.
Glib::ustring xmlpp::Attribute::get_value | ( | ) | const |
Get the value of this attribute.
Can be used for both an AttributeDeclaration and an AttributeNode.
Reimplemented in xmlpp::AttributeDeclaration.
void xmlpp::Attribute::set_value | ( | const Glib::ustring & | value | ) |
Set the value of this attribute.
If this is an AttributeDeclaration, the value will not be changed. This method is here for backward compatibility. It may be moved to AttributeNode in the future.