Extracting Attributes

You can obtain an attribute from an element using TBXML's "valueOfAttributeNamed: forElement:" method. The code below shows how you would extract the "name" attribute from the author element.

name = [TBXML valueOfAttributeNamed:@"name" forElement:author];

Next Guide - Extracting element textGuides_-_Extracting_element_text.html