Parsing RSS via RaptureXML

2019-06-08 08:49发布

问题:

How to work with tags <itunes:summary>text</itunes:summary>?

These following codes does not work:

episode.summary = [item child:@"summary" inNamespace:@"itunes"].text;

or

episode.summary = [item child:@"summary:itunes"].text;

回答1:

RaptureXML automatically deletes namespaces.

episode.summary = [item child:@"summary"].text;