Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set currentItem to nil when elemnetName is item or entry #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dearboy15
Copy link

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>

@tibo
Copy link
Owner

tibo commented Mar 20, 2015

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

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.

3 participants