Home | Trees | Indices | Help |
---|
|
object --+ | MbXmlParser
A parser for the Music Metadata XML format.
This parser supports all basic features and extensions defined by MusicBrainz, including unlimited document nesting. By default it reads an XML document from a file-like object (stream) and returns an object tree representing the document using classes from musicbrainz2.model.
The implementation tries to be as permissive as possible. Invalid contents are skipped, but documents have to be well-formed and using the correct namespace. In case of unrecoverable errors, a ParseError exception is raised.See Also: The Music Metadata XML Format
Instance Methods | |||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
Constructor. Thefactory parameter has be an instance of DefaultFactory or a subclass of it. It is used by parse to obtain objects from musicbrainz2.model
to build resulting object tree. If you supply your own factory, you have
to make sure all returned objects have the same interface as their
counterparts from musicbrainz2.model.
|
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. Note that anIOError may be raised if there
is a problem reading inStream .
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Tue May 27 10:30:22 2008 | http://epydoc.sourceforge.net |