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];