Re: Return XML attribute in DOM
| From: | Ashley Sheridan | Date: | Mon, 07 Sep 2009 15:43:15 +0000 |
| Subject: | Re: Return XML attribute in DOM | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297759@lists.php.net to get a copy of this message | ||
On Mon, 2009-09-07 at 16:37 +0100, Matthew Croud wrote:
>
> I'm at my wits end here, so close to the finishing line!
>
> Is there a method to return an attribute value of an XML node using
> DOM, I can check to see if an attribute exists using hasAttributes()
> But I can't retrieve the value.
>
> I'm so desperate i've started to eat dirt.
>
> Many thanks,
> Matt
Doesn't the DOM have the getAttribute() method?
Thanks,
Ash
http://www.ashleysheridan.co.uk