#include <rapidxml.hpp>
Public Member Functions | |
xml_document< Ch > * | document () const |
xml_attribute< Ch > * | next_attribute (const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const |
xml_attribute< Ch > * | previous_attribute (const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const |
xml_attribute () | |
Private Attributes | |
xml_attribute< Ch > * | m_next_attribute |
xml_attribute< Ch > * | m_prev_attribute |
Friends | |
class | xml_node< 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.
Ch | Character type to use. |
Definition at line 798 of file rapidxml.hpp.
rapidxml::xml_attribute< Ch >::xml_attribute | ( | ) | [inline] |
Constructs an empty attribute with the specified type. Consider using memory_pool of appropriate xml_document if allocating attributes manually.
Definition at line 810 of file rapidxml.hpp.
xml_document<Ch>* rapidxml::xml_attribute< Ch >::document | ( | ) | const [inline] |
Gets document of which attribute is a child.
Definition at line 819 of file rapidxml.hpp.
xml_attribute<Ch>* rapidxml::xml_attribute< Ch >::next_attribute | ( | const Ch * | name = 0 , |
std::size_t | name_size = 0 , |
||
bool | case_sensitive = true |
||
) | const [inline] |
Gets next attribute, optionally matching attribute name.
name | Name of attribute to find, or 0 to return next attribute regardless of its name; this string doesn't have to be zero-terminated if name_size is non-zero |
name_size | Size of name, in characters, or 0 to have size calculated automatically from string |
case_sensitive | Should name comparison be case-sensitive; non case-sensitive comparison works properly only for ASCII characters |
Definition at line 856 of file rapidxml.hpp.
xml_attribute<Ch>* rapidxml::xml_attribute< Ch >::previous_attribute | ( | const Ch * | name = 0 , |
std::size_t | name_size = 0 , |
||
bool | case_sensitive = true |
||
) | const [inline] |
Gets previous attribute, optionally matching attribute name.
name | Name of attribute to find, or 0 to return previous attribute regardless of its name; this string doesn't have to be zero-terminated if name_size is non-zero |
name_size | Size of name, in characters, or 0 to have size calculated automatically from string |
case_sensitive | Should name comparison be case-sensitive; non case-sensitive comparison works properly only for ASCII characters |
Definition at line 836 of file rapidxml.hpp.
friend class xml_node< Ch > [friend] |
Definition at line 801 of file rapidxml.hpp.
xml_attribute<Ch>* rapidxml::xml_attribute< Ch >::m_next_attribute [private] |
Definition at line 874 of file rapidxml.hpp.
xml_attribute<Ch>* rapidxml::xml_attribute< Ch >::m_prev_attribute [private] |
Definition at line 873 of file rapidxml.hpp.