Re: XML Attributes

2008-05-03 Thread Jens Alfke
On 3 May '08, at 1:43 PM, Mr. Gecko wrote: NSXMLNode *nodes = [xml rootElement]; NSXMLNode *node = [[nodes childAtIndex:1] childAtIndex:0]; to get this http://www.example.com/file1"; size="522656" name="File Number 1"> so now how do I get an attribute from it such as url, or name. I saw in

Re: XML Attributes

2008-05-03 Thread Mr. Gecko
Thanks it works here is my updated code NSXMLDocument *xml = [[NSXMLDocument alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://www.example.com/xmlfile.xml "]] options:NSXMLDocumentTidyXML error:NULL]; NSXMLNode *node = [xml rootElement]; NSString *name = [[(NSXMLE