Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-01-2007, 12:28 PM
Junior Member
 
Join Date: Sep 2007
Posts: 1
Question Getting XML Attribute from Result?

Hi,
I use Zend/Rest/Client to call an API. I get a XML-File as result. No problem to get values from a node, but how can I get an attribute?

Example:
<who id="foo">
<tags>
<tag count="10">bar</tag>
<tag count="10">bar1</tag>
</tags>
</who>

$tagstring = $result->who(); results in (bar,bar1)

But how do I get "count" to work with it?

THANKS
Sebastian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:01 AM.