Source for file xml.php
Documentation is available at xml.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* API for Digg's web services
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
* @author Joe Stump <joe@joestump.net>
* @copyright 1997-2007 The PHP Group
* @license http://www.php.net/license/3_0.txt PHP License 3.0
* @link http://pear.php.net/package/Services_Digg
require_once 'Services/Digg/Response/Common.php';
* XML responses are, technically, supported by this package, but only bug
* fixes will be handled. Consider this deprecated and unsupported by the
* @author Joe Stump <joe@joestump.net>
* @return object Instance of SimpleXMLElement
* @throws Services_Digg_Exception
throw new Services_Digg_Response_Exception ('simplexml_load_string() not found');
if (!$xml instanceof SimpleXmlElement ) {
throw new Services_Digg_Response_Exception ('Could not parse XML response');
if ((isset ($xml['code']) && is_numeric($xml['code'])) &&
(isset ($xml['message']) && strlen($xml['message']))) {
throw new Services_Digg_Response_Exception ((string) $xml['message'], (int) $xml['code']);
Documentation generated on Tue, 04 Dec 2007 15:00:14 -0500 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.
|