What steps will reproduce the problem?
1. Provide an Atom feed that uses the summary tag, not the content tag, and
use FeedFactory to produce an IFeed typed object
2.
3.
What is the expected output? What do you see instead?
I expect to see the feed summary - null is returned
What version of the product are you using? On what operating system?
Flex 2.0.1 Win XP
Please provide any additional information below.
I changed Entry.as as follows as a temp fix and this handles various atom
feeds from around the web just fine. I need to add some code, and also
determine what exactly to code when xhtml is detected. I tested a feed with
a type of xhtml, and the feed didn't have the expected div tags, which
*seems* to be standard.
public function get content():Content
{
var content:Content = new Content();
content.type = ParsingTools.nullCheck(x.atom::content.@type);
content.src = ParsingTools.nullCheck(x.atom::content.@src);
if (content.type == "xhtml")
{
// this line needs to be changed, but for now, return flat content.
content.value = ParsingTools.nullCheck(x.atom::content);
}
else
{
content.value = ParsingTools.nullCheck(x.atom::content);
}
if(content.src != null || content.value == null)
{
content.type = ParsingTools.nullCheck(x.atom::summary.@type);
content.src = ParsingTools.nullCheck(x.atom::link.(@rel=="self").@href);
if (content.type == "xhtml")
{
content.value = ParsingTools.nullCheck(x.atom::summary);
}
else
{
content.value = ParsingTools.nullCheck(x.atom::summary);
}
}
return content;
}
Original issue reported on code.google.com by jasondru...@gmail.com on 18 Mar 2007 at 1:39
Original issue reported on code.google.com by
jasondru...@gmail.com
on 18 Mar 2007 at 1:39