开发者

getting corresponding value of an attribute from an NSXMLElement

How can i get t开发者_Python百科he corresponding value of an attribute of an NSXMlelement object from a self constructed NSXMLNode.


[[element attributeForName:@"name"] stringValue]


If your struct type is a NSXMLElement then I use:

NSString *valueInTag = [[element elementForName:@"name"] stringValue];

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜