note 36232 modified in function.domnode-node-value by bjori
| From: | bjori@php.net | Date: | Mon, 06 Mar 2006 22:46:43 +0000 |
| Subject: | note 36232 modified in function.domnode-node-value by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-104942@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($temp as $nexta) {
echo $nexta->get_content();
}
- Salman
http://www.setcomputing.com/
--was--
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/
http://php.net/manual/en/function.domnode-node-value.php