BlockRSSParser icon indicating copy to clipboard operation
BlockRSSParser copied to clipboard

Set currentItem to nil when elemnetName is item or entry

Open dearboy15 opened this issue 9 years ago • 1 comments

When the element name is item or entry and there are parameters like title, link, description etc outside item after that, the item child nodes are replaced with that parameters or added that parameter if there is no item child notes. Like the following xml.

<channel>
        <item>
        <title>item title</title>
        <link>item URL</link>
        <description>item content</description>
        <dc:subject>item category</dc:subject>
        <dc:creator>item auther</dc:creator> 
        <dc:date>item date</dc:date>
        </item>

        <title>site title</title>
        <link>site RSS URL</link>
        <description>site content</description>
        <dc:language>en</dc:language>
        <dc:creator>site owner</dc:creator>
        <dc:date>RSS last updated date</dc:date>
</channel>

dearboy15 avatar Mar 17 '15 10:03 dearboy15

Good catch, I didn't run trough this case. might worth adding some test though

tibo avatar Mar 20 '15 00:03 tibo