note 58921 rejected from function.dom-domnamednodemap-item by dmytton
| From: | dmytton@php.net | Date: | Mon, 21 Nov 2005 06:38:47 +0000 |
| Subject: | note 58921 rejected from function.dom-domnamednodemap-item by dmytton | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98871@lists.php.net to get a copy of this message | ||
Note Submitter: pedz at easesoftware dot net
----
I'm trying to use this but I'm not getting all the data. In the node that begins with:
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='XMP toolkit 3.0-28, framework
1.6'>
I can get the x:xmptk=.... attribute but I can not find the xmlns:x=... attribute. I'm doing
roughtly this:
if ($node->hasAttributes()) {
$attr = $node->attributes;
for ($i = 0; ($n2 = $attr->item($i)); $i++) {
for ( ; $n2; $n2 = $n2->nextSibling) {
echo " " . $n2->name . "=" . $n2->value;
}
}
}
A diagram of how the data is suppose to be represented would help a great deal. i.e. from the
sample xml file, give the object tree that results from it.
Thanks.