C++
C#
VB
JScript
All

# xml_tree

Copyright (C) 2005 IENT-RWTH Aachen

XML Container

|  | tree<xml_node<V> >

| xml_tree

|  | tree<xml_node<V> >

| xml_tree

Groups

Constructors
xml_tree | Builds an instance of the object
Assignment
operator= | Assignment Operator
Operators
operator() | Node access
operator[] | Node access
Operations
attributes | Attributes access
data | Data access
declarations | Declarations access
find | Searches the first node
find_name_if | Searches the first node which name satisfies the predicate
load | Loads a file
name | Name access
push_back | Inserts after the last node
start_declaration | Start declaration access

Example

    xml_tree<XMLElem> xml("root");
    xml.front().push_back(XMLElem("first","1")); // root->first
    xml.front().push_back("second"); // root->second
    xml.front().front().push_back("third"); // root->first->third
    xml.front().front().push_back("forth"); // root->first->forth
    xml_tree<XMLElem>::reference x=xml.front(); //root->first
    x["second"].data() = "2";