note 65588 added to function.dom-domxpath-construct
| From: | bill dot mccuistion at qbopen dot com | Date: | Thu, 04 May 2006 03:35:39 +0000 |
| Subject: | note 65588 added to function.dom-domxpath-construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-110493@lists.php.net to get a copy of this message | ||
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";
}
----
Server IP: 66.163.161.117
Probable Submitter: 70.122.95.69
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.dom-domxpath-construct.php
Edit -- http://master.php.net/note/edit/65588
Del: integrated -- http://master.php.net/note/delete/65588/integrated
Del: useless -- http://master.php.net/note/delete/65588/useless
Del: bad code -- http://master.php.net/note/delete/65588/bad+code
Del: spam -- http://master.php.net/note/delete/65588/spam
Del: non-english -- http://master.php.net/note/delete/65588/non-english
Del: in docs -- http://master.php.net/note/delete/65588/in+docs
Del: other reasons-- http://master.php.net/note/delete/65588
Reject -- http://master.php.net/note/reject/65588
Search -- http://master.php.net/manage/user-notes.php