rapidxml
xml_attribute< Ch > Class Template Reference

#include <rapidxml.hpp>

Inherits xml_base< char >.

Public Member Functions

 xml_attribute ()
 
xml_document< Ch > * document () const
 
xml_attribute< Ch > * previous_attribute (const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const
 
xml_attribute< Ch > * next_attribute (const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const
 
- Public Member Functions inherited from xml_base< char >
char * name () const
 
void name (const char *name, std::size_t size)
 
void name (const char *name)
 
std::size_t name_size () const
 
char * value () const
 
void value (const char *value, std::size_t size)
 
void value (const char *value)
 
std::size_t value_size () const
 
xml_node< char > * parent () const
 

Detailed Description

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
ChCharacter type to use.