The NSXMLNode I get from "[existingTestSuite attributeForName:@"tests"]" does not respond to intValue. I don't think you can go from NSXMLNode to int without converting to string first.