Re: [PHP] Impossible to list attributes of xml-element?

2005-05-27 Thread Christian Stocker
On 5/26/05, Victor Spång Arthursson [EMAIL PROTECTED] wrote:
 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?

$domelement-attributes

gives you a DomNodeList back with all attributes

chregu
 
 Sincerely
 
 Victor
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch  |  [EMAIL PROTECTED]  |  gnupg-keyid 0x5CE1DECB

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Impossible to list attributes of xml-element?

2005-05-26 Thread Victor Spång Arthursson

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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php