Impossible to list attributes of xml-element?
| From: | Victor Spång Arthursson | Date: | Thu, 26 May 2005 10:05:15 +0000 |
| Subject: | Impossible to list attributes of xml-element? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-215835@lists.php.net to get a copy of this message | ||
Ciao!
I'm selecting an element in the xml using xpath. I know there is only one element matching the xpath-query, but still I get the result as a list. Nevermind.
This list is of the type domnodelist, on which only one action is allowed: item()
Selecting [xpath-result]->item(0) gives me the only element in the result in the form of a domelement. This domelement should have a lot of attributes, but I cant find no way to get some kind of list over those attributes, to work further with.
Could someone please point me in the same direction?
Sincerely
Victor