NAME
WebService::MusicBrainz::Response
SYNOPSIS
DESCRIPTION
This module will hide the details of the XML web service response and provide an API to query the XML data which has been returned. This module is responsible for parsing the XML web service response and instantiating objects to provide access to the details of the response.
METHODS
new()
This method is the constructor and it will call for initialization.
_get_twig()
This method will create an XML::Twig object and parse the XML response which is then stored in the XML::Twig object.
as_xml()
This method returns the raw XML from the MusicBrainz web service response.
_init()
This method will initialize the WebService::MusicBrainz::Response object and parse the XML response.
artist()
This method will return the first artist object from the artist list.
release()
This method will return the first release object from the release list.
track()
This method will return the first track object from the track list.
artist_list()
This method will return the artist list.
release_list()
This method will return the release list.
track_list()
This method will return the track list.
_create_artist()
Helper function to create a WebService::MusicBrainz::Response::Artist object and to populate it with data. Internal use only.
_create_release()
Helper function to create a WebService::MusicBrainz::Response::Release object and to populate it with data. Internal use only.
_create_track()
Helper function to create a WebService::MusicBrainz::Response::Track object and to populate it with data. Internal use only.
_create_alias()
Helper function to create a WebService::MusicBrainz::Response::Alias object and to populate it with data. Internal use only.
_create_relation()
Helper function to create a WebService::MusicBrainz::Response::Relation object and to populate it with data. Internal use only.
AUTHOR
COPYRIGHT AND LICENSE
Copyright 2006 by Bob Faist
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
http://wiki.musicbrainz.org/XMLWebService