Skip to content

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