Skip to content

Add the ability for the developer to specify other XML elements to parse.#43

Open
macoss wants to merge 3 commits intomwaterfall:masterfrom
macoss:master
Open

Add the ability for the developer to specify other XML elements to parse.#43
macoss wants to merge 3 commits intomwaterfall:masterfrom
macoss:master

Conversation

@macoss
Copy link
Copy Markdown

@macoss macoss commented Dec 29, 2011

Add a NSArray object to the MWFeedParser class (customKeys) that can be used to pass string identifiers to the parser. The parser then compares these keys during the parse and if an element with that name is found the key and the sting value will be added to a dictionary on the MWFeedItem class called customProperties. This will allow developers to expand the use of MWFeedParser to handle custom elements in their feeds or elements that are specific to the different formats.

I have added a NSArray that is used to pass in a list of NSStrings that
is to contain the xml element names of the custom elements that you
would like MWFeedParser to look for and parse if it is found.  If the
elements are found they will be added to the customProperities
NSDictionary that I have added to the MWFeedItem class.
…error

Added documentation to the README and fixed a spelling error in the
dictionary name.
@ahysing
Copy link
Copy Markdown

ahysing commented Nov 5, 2012

I really need this for parsing a format called GeoRSS based on RSS 1. To me it seames like @macoss has implemented a simple XPath based XML extension parser, but I can find no examples of usage, and it is not commited back to the mwaterfall / MWFeedParser branch. Is this piece of code able to parse georss:pointlogitude latitude/georss:point within each item?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants