note 58921 added to function.dom-domnamednodemap-item

From: Date: Sun, 20 Nov 2005 23:05:10 +0000
Subject: note 58921 added to function.dom-domnamednodemap-item
Groups: php.notes 
Request: Send a blank email to php-notes+get-98864@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.dom-domnamednodemap-item.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58921 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58921&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58921&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58921&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58921&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58921&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58921&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58921&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58921&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98864) next »