Page 1 of 1

DOMNode Attribute List

Posted: Sun Feb 08, 2009 4:18 pm
by urza9814
I have code that utilizes the 'getAttribute()' method of the DOMNode class. The problem is, I need some way to iterate through all the attributes that the node has, and I can't seem to find documentation anywhere of any methods to get a list of attributes. Is there any way to do this?

Re: DOMNode Attribute List

Posted: Sun Feb 08, 2009 10:46 pm
by susrisha
use simplexml instead. it has a method Attributes that gives all the attributes of the node.