note 65588 deleted from function.dom-domxpath-construct by bjori

From: Date: Wed, 24 May 2006 21:12:49 +0000
Subject: note 65588 deleted from function.dom-domxpath-construct by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-111962@lists.php.net to get a copy of this message
Note Submitter: bill dot mccuistion at qbopen dot com ---- It is not clear what the DOMXPath::__constructor() method returns. $xml = "... assume some valid xml goes here ..."; $DOMDocument = new DOMDocument; // This seems reliable. if ($DOMDocument->loadXML($xml)) { // good result. } else { // bad result. $Result = false; $this->ErrFlag = true; $this->ErrMsgs = "Error: DOMXPath"; } // This is not so reliable. if ($XPath = new DOMXPath($DOMDocument)) { // good result. } else { // bad result. $Result = false; $this->ErrFlag = true; $this->ErrMsgs = "Error: DOMXPath"; }

« previous php.notes (#111962) next »