Re: XML_XPath not inheriting from common

From: Date: Fri, 08 Aug 2003 03:47:54 +0000
Subject: Re: XML_XPath not inheriting from common
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7098@lists.php.net to get a copy of this message
According to the code in XML_XPath (I am looking at the CVS code) it does inherit the appropriate methods: require_once 'PEAR.php'; require_once 'XPath/common.php'; require_once 'XPath/result.php'; require_once 'XPath/error.php'; // }}} // {{{ class XML_XPath /** * The main "XML_XPath" class is simply a container class with some methods for * creating DOM xml objects and preparing error codes * * @version Revision: 1.1 * @author Dan Allen <dan@mojavelinux.com> * @access public * @since PHP 4.2.1 * @package XML_XPath */ // }}} class XML_XPath extends XML_XPath_common { --- Jacob C <jacob@keystreams.com> wrote: > I will probably kick myself for not figuring this one out but for some reason > > when I instantiate the XML_XPath class and attempt to call a function from > XML_XPath_common I receive "Call to undefined function: (any method name from > > common)". An example of the code: > > // include class > require_once("XML/XPath.php"); > > // instantiate object > $tre = new XML_XPath("/path/to/valid/file/samples.xml"); > $t = $tre->getElementsByTagName("Description"); > > Shouldn't the getElementsByTagName be accessible through the $tre object > handler? > > Thanks, > J > > -- > "If there's a World War III, World War IV will be fought with sticks and > stones." > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== -- Jesus M. Castagnetto (jcastagnetto@yahoo.com) Research: http://metallo.scripps.edu/ Personal: http://www.castagnetto.org/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com

« previous php.pear.general (#7098) next »