开发者

getting corresponding value of an attribute from an NSXMLElement

开发者 https://www.devze.com 2022-12-21 15:05 出处:网络
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]

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

精彩评论

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

关注公众号