|
XMLParserCPP 1.0
|
The XMLAlgorithms class. More...
#include <XMLAlgorithms.h>
Public Member Functions | |
| XMLAlgorithms () | |
| XMLAlgorithms constructor. | |
Static Public Member Functions | |
| static void | searchElement (const std::vector< XMLElement > &elements, const std::string &element_name, std::vector< XMLElement * > &result) |
| Searches for XML elements. | |
| static void | searchElement (const std::vector< XMLElement > &elements, const XMLElement::Type &element_type, std::vector< XMLElement * > &result) |
| Searches for XML elements. | |
| static void | searchElement (const std::vector< XMLElement > &elements, const std::string &element_name, const std::string &attribute_id, std::vector< XMLElement * > &result) |
| Searches for XML elements. | |
| static void | searchElement (const std::vector< XMLElement > &elements, const std::string &element_name, const std::string &attribute_id, const std::string &attribute_value, std::vector< XMLElement * > &result) |
| Searches for XML elements. | |
| static void | searchElement (const std::vector< XMLElement * > &elements, const std::string &element_name, std::vector< XMLElement * > &result) |
| Searches for XML elements. | |
| static void | searchElement (const std::vector< XMLElement * > &elements, const XMLElement::Type &element_type, std::vector< XMLElement * > &result) |
| Searches for XML elements. | |
| static void | searchElement (const std::vector< XMLElement * > &elements, const std::string &element_name, const std::string &attribute_id, std::vector< XMLElement * > &result) |
| Searches for XML elements. | |
| static void | searchElement (const std::vector< XMLElement * > &elements, const std::string &element_name, const std::string &attribute_id, const std::string &attribute_value, std::vector< XMLElement * > &result) |
| Searches for XML elements. | |
| static void | writeXML (const std::vector< XMLElement > &elements, std::string &result) |
| Writes XML elements to given string. | |
| static void | writeXML (const std::vector< XMLElement * > &elements, std::string &result) |
| Writes XML elements to given string. | |
The XMLAlgorithms class.
XMLAlgorithms class contains various methods for XMLElement processing.
|
static |
Searches for XML elements.
This method searches XML elements of given name containing attribute of given ID set to given value within vector of pointers to XMLElement provided. Search is carried out in subelements as well (see XMLElement documentation).
| elements | Vector of pointers to XMLElement search to be carried out on. |
| element_name | Desired XML element name. |
| attribute_id | Desired XML element attribute name. |
| attribute_value | Desired XML element attribute value. |
| result | Vector of pointers to XMLElement search results to be appended to. |
|
static |
Searches for XML elements.
This method searches XML elements of given name containing attribute of given ID within vector of pointers to XMLElement provided. Search is carried out in subelements as well (see XMLElement documentation).
| elements | Vector of pointers to XMLElement search to be carried out on. |
| element_name | Desired XML element name. |
| attribute_id | Desired XML element attribute name. |
| result | Vector of pointers to XMLElement search results to be appended to. |
|
static |
Searches for XML elements.
This method searches for XML elements of a given name within vector of pointers to XMLElement provided. Search is carried out in subelements as well (see XMLElement documentation).
| elements | Vector of pointers to XMLElement search to be carried out on. |
| element_name | Desired XML element name. |
| result | Vector of pointers to XMLElement search results to be appended to. |
|
static |
Searches for XML elements.
This method searches XML elements of given type within vector of poiters to XMLElement provided. Search is carried out in subelements as well (see XMLElement documentation).
| elements | Vector of pointers to XMLElement search to be carried out on. |
| element_type | Desired XML element type. |
| result | Vector of pointers to XMLElement search results to be appended to. |
|
static |
Searches for XML elements.
This method searches XML elements of given name containing attribute of given ID set to given value within vector of XMLElement provided. Search is carried out in subelements as well (see XMLElement documentation).
| elements | Vector of XMLElement search to be carried out on. |
| element_name | Desired XML element name. |
| attribute_id | Desired attribute name. |
| attribute_value | Desired attribute value. |
| result | Vector of pointers to XMLElement search results to be appended to. |
|
static |
Searches for XML elements.
This method searches XML elements of given name containing attribute of given ID within vector of XMLElement provided. Search is carried out in subelements as well (see XMLElement documentation).
| elements | Vector of XMLElement search to be carried out on. |
| element_name | Desired XML element name. |
| attribute_id | Desired XML element attribute name. |
| result | Vector of pointers to XMLElement search results to be appended to. |
|
static |
Searches for XML elements.
This method searches for XML elements of a given name within vector of XMLElement provided. Search is carried out in subelements as well (see XMLElement documentation).
| elements | Vector of XMLElement search to be carried out on. |
| element_name | Desired XML element name. |
| result | Vector of pointers to XMLElement search results to be appended to. |
|
static |
Searches for XML elements.
This method searches XML elements of given type within vector of XMLElement provided. Search is carried out in subelements as well (see XMLElement documentation).
| elements | Vector of XMLElement search to be carried out on. |
| element_type | Desired XML element type. |
| result | Vector of pointers to XMLElement search results to be appended to. |
|
static |
Writes XML elements to given string.
| elements | Vector of pointers to XMLElement to be written. |
| result | String XML elements are to be written to. |
|
static |
Writes XML elements to given string.
| elements | Vector of XML elements to be written. |
| result | String XML elements are to be written to. |