2009年3月3日星期二

Re: [fw-webservices] Getting XML Attribute from Result?

Hi,

I am having the same problem with Zend Rest Result not providing a way to
access an element's attribute. Did you find a solution?

Alex

Sebastian Kurt wrote:
>
> 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
> --
> mailto:skurt@gmx.de
> http://skurt.de
> 0179 7923088
>
>

--
View this message in context: http://www.nabble.com/Getting-XML-Attribute-from-Result--tp12442960p22324217.html
Sent from the Zend Web Services mailing list archive at Nabble.com.

没有评论: