[jQuery] Getting xml elements attributes
Hi,
I'm trying to parse an xml file like this :
$("branch",xml).siblings().each(function(){
get name attribute value here
$("result",this).siblings().each(function(){
do something
});
});
and my xml file look link this :
<results>
<branch name="title">
<result>
<desc>some text</desc>
</result>
<result>
<desc>some text</desc>
</result>
<result>
<desc>some text</desc>
</result>
</branch>
</results>
but I can't find the way to get the value of the attribute "name" of
each element "branch"
Francis.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/