rapidxml
void parse ( Ch *  text) [inline]

Parses zero-terminated XML string according to given flags. Passed string will be modified by the parser, unless rapidxml::parse_non_destructive flag is used. The string must persist for the lifetime of the document. In case of error, rapidxml::parse_error exception will be thrown.

If you want to parse contents of a file, you must first load the file into the memory, and pass pointer to its beginning. Make sure that data is zero-terminated.

Document can be parsed into multiple times. Each new call to parse removes previous nodes and attributes (if any), but does not clear memory pool.

Parameters:
textXML data to parse; pointer is non-const to denote fact that this data may be modified by the parser.

References xml_node< Ch >::append_node(), xml_node< Ch >::remove_all_attributes(), and xml_node< Ch >::remove_all_nodes().