Created
April 6, 2015 21:07
-
-
Save luxio/431ac8b060c1be3310cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func parser(parser: NSXMLParser!, didStartElement elementName: String!, namespaceURI: String!, qualifiedName qName: String!, attributes attributeDict: [NSObject : AnyObject]!) { | |
element = elementName | |
} | |
func parser(parser: NSXMLParser!, foundCharacters string: String!) { | |
currentStringValue = string | |
} | |
func parser(parser: NSXMLParser!, didEndElement elementName: String!, namespaceURI: String!, qualifiedName qName: String!) { | |
if elementName == "title" { | |
titles.append(currentStringValue) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment