boom
boom

Reputation: 6166

getting corresponding value of an attribute from an NSXMLElement

How can i get the corresponding value of an attribute of an NSXMlelement object from a self constructed NSXMLNode.

Upvotes: 0

Views: 1461

Answers (2)

LevinsonTechnologies
LevinsonTechnologies

Reputation: 769

If your struct type is a NSXMLElement then I use:

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

Upvotes: 0

Rob Napier
Rob Napier

Reputation: 299355

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

Upvotes: 2

Related Questions