|
SSS - S3 Toolkit 0.9.6
S3 client library and applications
|
XML parser, returns array of text elements with the same parent path or an array of parsed XML sub trees. More...
#include <xmlstreams.h>
Public Member Functions | |
| const XMLIStream & | operator[] (const std::string &p) const |
| operator std::string () const | |
| operator std::vector< std::string > () const | |
| operator std::vector () const | |
| XMLIStream (const std::string &xml) | |
XML parser, returns array of text elements with the same parent path or an array of parsed XML sub trees.
An XML subtree is represented as record in the form
under the specifed path.
This class stores data of different types inside a variant object and extracts the value when the class instance is converted to a type during assignment operations.
Since the returned types all have empty values, if the path or text is not found an empty std::string, std::vector or std::unordered_map is returned.
|
inline |
Constructor
| [in] | xml | xml text |
|
inline |
|
inline |
|
inline |
|
inline |
Extract array of text elements under specified path or list of records in the form map<path to text element, text element>.
| [in] | p | path to text elements if path starts with '/' or to sbtrees under path if it does not start with '/' |
References RecordList().
Here is the call graph for this function: