MusicBrainz::MbXmlParser Class Reference

A parser for the Music Metadata XML format. More...

List of all members.

Public Member Functions

 MbXmlParser ()
 Constructor.
virtual ~MbXmlParser ()
 Destructor.
Metadataparse (const std::string &data)
 Parses the MusicBrainz web service XML.

Detailed Description

A parser for the Music Metadata XML format.

See also:
The Music Metadata XML Format

Constructor & Destructor Documentation

MusicBrainz::MbXmlParser::MbXmlParser (  ) 

Constructor.

virtual MusicBrainz::MbXmlParser::~MbXmlParser (  )  [virtual]

Destructor.


Member Function Documentation

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.

Parameters:
data a string containing the XML data
Returns:
a Metadata object (never NULL)
Exceptions:
ParseError if the document is not valid

Generated on 11 Nov 2010 for libmusicbrainz3 by  doxygen 1.6.1