note 74309 added to ref.domxml
| From: | gue-gue at gmx dot de | Date: | Wed, 04 Apr 2007 14:46:18 +0000 |
| Subject: | note 74309 added to ref.domxml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125091@lists.php.net to get a copy of this message | ||
Hi at All,
if you use xpath_eval() you get a xpathobject with a type-member-variable, which tells you about the
type of the found content. Here are the values and the corresponding types:
1 = XPATH_NODESET (integer)
2 = XPATH_BOOLEAN (integer)
3 = XPATH_NUMBER (integer)
4 = XPATH_STRING (integer)
I think, but don't know, that the rest of the constants are:
0 = XPATH_UNDEFINED (integer)
5 = XPATH_POINT (integer)
6 = XPATH_RANGE (integer)
7 = XPATH_LOCATIONSET (integer)
I hope i could help some people.
Greetz,
Chris
----
Server IP: 212.124.37.9
Probable Submitter: 134.93.166.218
----
Manual Page -- http://www.php.net/manual/en/ref.domxml.php
Edit -- https://master.php.net/note/edit/74309
Del: integrated -- https://master.php.net/note/delete/74309/integrated
Del: useless -- https://master.php.net/note/delete/74309/useless
Del: bad code -- https://master.php.net/note/delete/74309/bad+code
Del: spam -- https://master.php.net/note/delete/74309/spam
Del: non-english -- https://master.php.net/note/delete/74309/non-english
Del: in docs -- https://master.php.net/note/delete/74309/in+docs
Del: other reasons-- https://master.php.net/note/delete/74309
Reject -- https://master.php.net/note/reject/74309
Search -- https://master.php.net/manage/user-notes.php