note 36232 added to function.domnode-node-value
| From: | Salman at rn2 dot php dot net | Date: | Wed, 01 Oct 2003 21:42:49 +0000 |
| Subject: | note 36232 added to function.domnode-node-value | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-57561@lists.php.net to get a copy of this message | ||
To get the contents of the node, which is for instance:
<a>this is a test</a>
To get the string: "this is a test" use:
// assuming dom is an actual xml-dom
$temp = $dom->get_elements_by_tagname("a");
foreach($a as $nexta) {
echo $nexta->get_content();
}
- Salman
http://www.setcomputing.com/
----
Manual Page -- http://www.php.net/manual/en/function.domnode-node-value.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36232
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36232&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36232&report=yes