|
| xml_attribute () |
| Constructs an empty attribute with the specified type. More...
|
|
xml_document< Ch > * | document () const |
| Gets document of which attribute is a child. More...
|
|
xml_attribute< Ch > * | previous_attribute (const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const |
| Gets previous attribute, optionally matching attribute name. More...
|
|
xml_attribute< Ch > * | next_attribute (const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const |
| Gets next attribute, optionally matching attribute name. More...
|
|
Ch * | name () const |
| Gets name of the node. More...
|
|
std::size_t | name_size () const |
| Gets size of node name, not including terminator character. More...
|
|
Ch * | value () const |
| Gets value of node. More...
|
|
std::size_t | value_size () const |
| Gets size of node value, not including terminator character. More...
|
|
void | name (const Ch *name, std::size_t size) |
| Sets name of node to a non zero-terminated string. More...
|
|
void | name (const Ch *name) |
| Sets name of node to a zero-terminated string. More...
|
|
void | value (const Ch *value, std::size_t size) |
| Sets value of node to a non zero-terminated string. More...
|
|
void | value (const Ch *value) |
| Sets value of node to a zero-terminated string. More...
|
|
xml_node< Ch > * | parent () const |
| Gets node parent. More...
|
|
template<class Ch = char>
class rapidxml::xml_attribute< Ch >
Class representing attribute node of XML document.
Each attribute has name and value strings, which are available through name() and value() functions (inherited from xml_base). Note that after parse, both name and value of attribute will point to interior of source text used for parsing. Thus, this text must persist in memory for the lifetime of attribute.
- Parameters
-