blakewatters/XML-to-NSDictionary — pull request #2 by michelzanini (2014-02-10 19:20:05+00:00)
Title: When there is an XML attribute called "text" it conflicts with the "text" string used for the tag body content

If I have an XML like this:

My Text Body

The current resulting NSDictionary is this:

{ "forecast" = { "code" = "1", "text" = "My Text Body"} }

The "text" attribute value is lost because you are using "text" for the tag body.

I changed that to be "#text", so that will not conflict anymore. Then the result dictionary will be:

{ "forecast" = { "code" = "1", "text" = "Sunny", "#text" = "My Text Body"} }

Note: This change can break somebody else's code if he does not update it's code.