|
libmusicbrainz3
3.0.2
|
A parser for the Music Metadata XML format. More...
Public Member Functions | |
| MbXmlParser () | |
| Constructor. | |
| virtual | ~MbXmlParser () |
| Destructor. | |
| Metadata * | parse (const std::string &data) |
| Parses the MusicBrainz web service XML. | |
A parser for the Music Metadata XML format.
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 |