You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@abdera.apache.org by Dan Beaulieu <db...@moreover.com> on 2010/04/15 19:10:13 UTC

Using an existing parser

Hi all, I am consuming an atom feed from a 3rf party library where they
are giving me an XmlPullParser. I'd like to be able to just feed that
parser instance to Abdera and have it build the abdera objects. For one
it'd be less work and two part of the xml spec, the XmlPullParser
un-encodes html characters. So things like &lt;br/&gt; become <br/>. So
I can't just buffer the data from the pull parser and give it to Abdera
because Abdera thinks it found xml, doesn't know what to do with the tag
<br/> tag and so I lose the data. 

 

It looks possible, but I'm coming up empty after cruising the source. 

 

I'm building from source from svn so I am the most up to date.

 

Thanks

 

Dan


Re: Using an existing parser

Posted by ck <ch...@googlemail.com>.
Hi Dan,

maybe you can add a CDATA section around the html?
http://feedvalidator.org/testcases/atom/3.1.1.2/valid_html.xml

regards

ck



2010/4/15 Dan Beaulieu <db...@moreover.com>:
> Hi all, I am consuming an atom feed from a 3rf party library where they
> are giving me an XmlPullParser. I'd like to be able to just feed that
> parser instance to Abdera and have it build the abdera objects. For one
> it'd be less work and two part of the xml spec, the XmlPullParser
> un-encodes html characters. So things like &lt;br/&gt; become <br/>. So
> I can't just buffer the data from the pull parser and give it to Abdera
> because Abdera thinks it found xml, doesn't know what to do with the tag
> <br/> tag and so I lose the data.
>
>
>
> It looks possible, but I'm coming up empty after cruising the source.
>
>
>
> I'm building from source from svn so I am the most up to date.
>
>
>
> Thanks
>
>
>
> Dan
>
>