Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从自构建的 NSXMLNode 中获取 NSXMleelement 对象的属性的相应值。
[[element attributeForName:@"name"] stringValue]
如果您的结构类型是 NSXMLElement,那么我使用:
NSString *valueInTag = [[元素 elementForName:@"name"] stringValue];