Public Member Functions | |
MbXmlParser () | |
Constructor. | |
virtual | ~MbXmlParser () |
Destructor. | |
Metadata * | parse (const std::string &data) |
Parses the MusicBrainz web service XML. |
MusicBrainz::MbXmlParser::MbXmlParser | ( | ) |
Constructor.
virtual MusicBrainz::MbXmlParser::~MbXmlParser | ( | ) | [virtual] |
Destructor.
Metadata* MusicBrainz::MbXmlParser::parse | ( | const std::string & | data | ) |
Parses the MusicBrainz web service XML.
Returns a Metadata object representing the parsed XML or raises a ParseError exception if the data was malformed. The parser tries to be liberal and skips invalid content if possible.
data | a string containing the XML data |
ParseError | if the document is not valid |