tags:

views:

76

answers:

1

I am using CXMLDocument parser to parse an xml file in iphone... Its work great for me...

But i dont know how i parse the attribute name of the CXMLElement ? my sample xml is here

<thumbnail url="http://www.samplewebservice/image.gif"/&gt;

<rating value="3" max="5"/>

<views value="1654"/>

I want to get url,value and max values from the xml file....

Can anyone help me ?

Thanks in advance

A: 

Use (resultElement is CXMLElement):

[resultElement attributeForName:@"url"] stringValue];
[resultElement attributeForName:@"value"] stringValue];
[resultElement attributeForName:@"max"] stringValue];

I hope this will help.

sniurkst
thank you for help