2

我正在使用 ROME 库来解析 Blogger Atom 提要,我需要阅读作者缩略图的 URL。我怎样才能做到这一点?送丝不包含此元素。

<feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'>
    <id>tag:blogger.com,1999:blog-6916314241990305466</id>
    <updated>2012-03-28T06:24:27.688-07:00</updated>
    <title type='text'>Padgets - City Campaign</title>
    <subtitle type='html'></subtitle>
    <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://padgets-city.blogspot.com/feeds/posts/default'/>
    <link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6916314241990305466/posts/default'/>
    <link rel='alternate' type='text/html' href='http://padgets-city.blogspot.com/'/>
    <author>
            <name>PadgetsTest</name>
            <uri>http://www.blogger.com/profile/15823334142528274028</uri>
            <email>noreply@blogger.com</email>
            <!-- How to read following line? -->
            <gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/-TK6v5Q6uCEI/T3MQ_WqmpoI/AAAAAAAAACM/B-itCET-EMs/s220/b1.jpg'/>
    </author>
    <generator version='7.00' uri='http://www.blogger.com'>Blogger</generator>
</feed>
4

1 回答 1

2

我通过实现 ROME GData 模块解决了这个问题。它只支持image元素,源代码可以在https://github.com/lradziwonowicz/rome-gdata-module-skeleton找到

我会尝试使用 Abdera而不是ROME

于 2012-03-30T10:35:36.653 回答