#include <pugixml.hpp>
Public Types | |
typedef xml_node_iterator | iterator |
typedef xml_attribute_iterator | attribute_iterator |
Public Member Functions | |
xml_node () | |
operator unspecified_bool_type () const | |
bool | operator! () const |
bool | operator== (const xml_node &r) const |
bool | operator!= (const xml_node &r) const |
bool | operator< (const xml_node &r) const |
bool | operator> (const xml_node &r) const |
bool | operator<= (const xml_node &r) const |
bool | operator>= (const xml_node &r) const |
iterator | begin () const |
iterator | end () const |
attribute_iterator | attributes_begin () const |
attribute_iterator | attributes_end () const |
bool | empty () const |
xml_node_type | type () const |
const char * | name () const |
const char * | value () const |
xml_node | child (const char *name) const |
xml_node | child_w (const char *name) const |
xml_attribute | attribute (const char *name) const |
xml_attribute | attribute_w (const char *name) const |
xml_node | next_sibling (const char *name) const |
xml_node | next_sibling_w (const char *name) const |
xml_node | next_sibling () const |
xml_node | previous_sibling (const char *name) const |
xml_node | previous_sibling_w (const char *name) const |
xml_node | previous_sibling () const |
xml_node | parent () const |
xml_node | root () const |
const char * | child_value () const |
const char * | child_value (const char *name) const |
const char * | child_value_w (const char *name) const |
bool | set_name (const char *rhs) |
bool | set_value (const char *rhs) |
xml_attribute | append_attribute (const char *name) |
xml_attribute | insert_attribute_after (const char *name, const xml_attribute &attr) |
xml_attribute | insert_attribute_before (const char *name, const xml_attribute &attr) |
xml_node | append_child (xml_node_type type=node_element) |
xml_node | insert_child_after (xml_node_type type, const xml_node &node) |
xml_node | insert_child_before (xml_node_type type, const xml_node &node) |
void | remove_attribute (const xml_attribute &a) |
void | remove_attribute (const char *name) |
void | remove_child (const xml_node &n) |
void | remove_child (const char *name) |
xml_attribute | first_attribute () const |
xml_attribute | last_attribute () const |
template<typename OutputIterator > | |
void | all_elements_by_name (const char *name, OutputIterator it) const |
template<typename OutputIterator > | |
void | all_elements_by_name_w (const char *name, OutputIterator it) const |
xml_node | first_child () const |
xml_node | last_child () const |
template<typename Predicate > | |
xml_attribute | find_attribute (Predicate pred) const |
template<typename Predicate > | |
xml_node | find_child (Predicate pred) const |
template<typename Predicate > | |
xml_node | find_node (Predicate pred) const |
std::string | path (char delimiter= '/') const |
xml_node | first_element_by_path (const char *path, char delimiter= '/') const |
bool | traverse (xml_tree_walker &walker) |
unsigned int | document_order () const |
void | print (std::ostream &os, const char *indent="\t", unsigned int flags=format_default, unsigned int depth=0) |
Protected Types | |
typedef xml_node_struct *xml_node::* | unspecified_bool_type |
Protected Member Functions | |
xml_node (xml_node_struct *p) | |
void | precompute_document_order_impl () |
xml_allocator & | get_allocator () const |
Protected Attributes | |
xml_node_struct * | _root |
Friends | |
class | xml_node_iterator |