-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.xml
1489 lines (1209 loc) · 73 KB
/
feed.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:re="http://purl.org/atompub/rank/1.0">
<title type="text">Newest questions tagged rss - Stack Overflow</title>
<link rel="self" href="http://stackoverflow.com/feeds/tag?tagnames=rss&sort=newest" type="application/atom+xml" />
<link rel="alternate" href="http://stackoverflow.com/questions/tagged/?tagnames=rss&sort=newest" type="text/html" />
<subtitle>most recent 30 from stackoverflow.com</subtitle>
<updated>2015-04-16T08:21:16Z</updated>
<id>http://stackoverflow.com/feeds/tag?tagnames=rss&sort=newest</id>
<creativeCommons:license>http://www.creativecommons.org/licenses/by-sa/3.0/rdf</creativeCommons:license>
<entry>
<id>http://stackoverflow.com/q/29661085</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">How to Set the date as "today" with Yahoo Pipes (but not update everyday)?</title>
<category scheme="http://stackoverflow.com/tags" term="rss" />
<category scheme="http://stackoverflow.com/tags" term="yahoo-pipes" />
<author>
<name>jiffw</name>
<uri>http://stackoverflow.com/users/4793888</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29661085/how-to-set-the-date-as-today-with-yahoo-pipes-but-not-update-everyday" />
<published>2015-04-15T21:17:41Z</published>
<updated>2015-04-15T21:48:28Z</updated>
<summary type="html">
<p>I use fetch page to get user reviews from Google plus to then create an RSS feed for them - the most recent reviews are marked as "in the last week" by Google Plus - using regex I can convert this to TODAY which i then use as as the PubDate for the RSS feed.</p>
<p>The problem I have is that each Google plus review that is "in the last week" gets treated as new every day within the RSS feed I created because the PubDate gets changed to the current day, thus treating an "old" review as new.</p>
<p>Is there a way to set the date to today once, and then not update again?</p>
<p>Thanks in advance</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29658341</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">SAXparser android XML feed trouble</title>
<category scheme="http://stackoverflow.com/tags" term="java" />
<category scheme="http://stackoverflow.com/tags" term="android" />
<category scheme="http://stackoverflow.com/tags" term="xml" />
<category scheme="http://stackoverflow.com/tags" term="rss" />
<category scheme="http://stackoverflow.com/tags" term="sax" />
<author>
<name>Gordy77</name>
<uri>http://stackoverflow.com/users/4793359</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29658341/saxparser-android-xml-feed-trouble" />
<published>2015-04-15T18:45:56Z</published>
<updated>2015-04-15T19:25:14Z</updated>
<summary type="html">
<p>I am very new to website and android app development so please bare with me. </p>
<p>I am having a very similar problem to the following issue. Unfortunately I have not found my answer after reading through <a href="http://stackoverflow.com/questions/18199289/saxparser-android-arraylist-repeating-elements">this question</a>.</p>
<p>I am trying to gather an RSS feed from my website for my android app. I am using the following java script to do so.</p>
<pre><code> public class XMLHelper extends DefaultHandler {
private String URL_MAIN = "http://**.**.***.***/blank/blank/feed/?format=xml";
String TAG = "XMLHelper";
Boolean currTag = false;
String currTagVal = "";
public ItemValue post = null;
public ArrayList&lt;ItemValue&gt; posts = new ArrayList&lt;ItemValue&gt;();
public void get() {
try {
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser mSaxParser = factory.newSAXParser();
XMLReader mXmlReader = mSaxParser.getXMLReader();
mXmlReader.setContentHandler(this);
InputStream mInputStream = new URL(URL_MAIN).openStream();
mXmlReader.parse(new InputSource(mInputStream));
} catch(Exception e) {
Log.e(TAG, "Exception: " + e.getMessage());
}
}
@Override
public void characters(char[] ch, int start, int length)
throws SAXException {
if(currTag) {
currTagVal = currTagVal + new String(ch, start, length);
currTag = false;
}
}
@Override
public void endElement(String uri, String localName, String qName)
throws SAXException {
currTag = false;
if(localName.equalsIgnoreCase("title"))
post.setTitle(currTagVal);
else if (localName.equalsIgnoreCase("item")) {
posts.add(post);
}
}
@Override
public void startElement(String uri, String localName, String qName,
Attributes attributes) throws SAXException {
Log.i(TAG, "TAG: " + localName);
currTag = true;
currTagVal = "";
if(localName.equals("item"))
post = new ItemValue();
}
</code></pre>
<p>This is pulling from the following xml.</p>
<pre><code> &lt;channel&gt;
&lt;title&gt;Welcome to my website&lt;/title&gt;
&lt;link&gt;http://**.**.***.***/blank/blank/feed&lt;/link&gt;
&lt;atom:link href="http://**.**.***.***/blank/blank/feed/?format=xml" rel="self" type="application/rss+xml"/&gt;
&lt;description&gt;Activity feed&lt;/description&gt;
&lt;lastBuildDate&gt;Wed, 15 Apr 2015 16:21:17 +0000&lt;/lastBuildDate&gt;
&lt;generator&gt;http://buddypress.org/?v=2.2.1&lt;/generator&gt;
&lt;language&gt;en-US&lt;/language&gt;
&lt;ttl&gt;30&lt;/ttl&gt;
&lt;sy:updatePeriod&gt;hourly&lt;/sy:updatePeriod&gt;
&lt;sy:updateFrequency&gt;2&lt;/sy:updateFrequency&gt;
&lt;item&gt;
&lt;guid isPermaLink="false"&gt;822b2a07599526230c7bae1b1d0a00bf&lt;/guid&gt;
&lt;title&gt;
gordy77 posted an update in the group ****, **: Now the magic begins
&lt;/title&gt;
&lt;link&gt;http://**.**.***.***/draft-2/p/9/&lt;/link&gt;
&lt;pubDate&gt;Mon, 13 Apr 2015 16:47:29 +0000&lt;/pubDate&gt;
&lt;content:encoded&gt;...&lt;/content:encoded&gt;
&lt;slash:comments&gt;0&lt;/slash:comments&gt;
&lt;/item&gt;
</code></pre>
<p>Now when I run the app I just get a blank screen and the following error.</p>
<pre><code>E/XMLHelper? Exception: null
</code></pre>
<p>By changing the following code I can get the app to run but it only pulls one comment "item" from the RSS feed and repeats it 3 times. It is always the first "item" posted on that feed x3. </p>
<pre><code>if(localName.equals("item"))
post = new ItemValue();
if(localName.equals("channel"))
post = new ItemValue();
</code></pre>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29654969</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">What is the best way to generate youtube playlist rss feeds for an iOS app?</title>
<category scheme="http://stackoverflow.com/tags" term="ios" />
<category scheme="http://stackoverflow.com/tags" term="youtube" />
<category scheme="http://stackoverflow.com/tags" term="rss" />
<author>
<name>Adreno</name>
<uri>http://stackoverflow.com/users/1426031</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29654969/what-is-the-best-way-to-generate-youtube-playlist-rss-feeds-for-an-ios-app" />
<published>2015-04-15T15:51:20Z</published>
<updated>2015-04-15T15:51:20Z</updated>
<summary type="html">
<p>What is the best way to generate youtube playlist rss feeds for an iOS app?</p>
<p>At the moment I am using the following format:</p>
<p><a href="http://gdata.youtube.com/feeds/api/playlists/YOUR_YOUTUBE_PLAYLIST_NUMBER" rel="nofollow">http://gdata.youtube.com/feeds/api/playlists/YOUR_YOUTUBE_PLAYLIST_NUMBER</a></p>
<p>But doesn't seem to be as widely compatible as other feed data urls I have used.</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29652677</id>
<re:rank scheme="http://stackoverflow.com">-1</re:rank>
<title type="text">SimplePie Formatting - Create List</title>
<category scheme="http://stackoverflow.com/tags" term="formatting" />
<category scheme="http://stackoverflow.com/tags" term="rss" />
<category scheme="http://stackoverflow.com/tags" term="simplepie" />
<author>
<name>Chris</name>
<uri>http://stackoverflow.com/users/4792210</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29652677/simplepie-formatting-create-list" />
<published>2015-04-15T14:13:58Z</published>
<updated>2015-04-15T23:40:24Z</updated>
<summary type="html">
<p>I'm using the RSSSimplePie plugin for CMS Made Simple.</p>
<p>The feed in question is this <a href="https://www.tidetimes.org.uk/stoke-gabriel-duncannon-tide-times.rss" rel="nofollow">Tide Times</a>. I would like to display the times and heights as an inline list? Is this possible?</p>
<p>The template I have is this:</p>
<pre><code>&lt;div class="feeds"&gt;{foreach from=$feeds item=onefeed}
&lt;div class="feed-content"&gt;
{$onefeed-&gt;get_content()}
&lt;/div&gt;
{/foreach}&lt;/div&gt;
</code></pre>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29647935</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Using og:image For Custom Feed Aggregator</title>
<category scheme="http://stackoverflow.com/tags" term="facebook" />
<category scheme="http://stackoverflow.com/tags" term="image" />
<category scheme="http://stackoverflow.com/tags" term="rss" />
<category scheme="http://stackoverflow.com/tags" term="user-agent" />
<category scheme="http://stackoverflow.com/tags" term="meta" />
<author>
<name>Erve1879</name>
<uri>http://stackoverflow.com/users/1213425</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29647935/using-ogimage-for-custom-feed-aggregator" />
<published>2015-04-15T10:34:17Z</published>
<updated>2015-04-15T10:34:17Z</updated>
<summary type="html">
<p>I'm working on a custom RSS feed aggregator which parses RSS feeds from various news-type sites, shows a summary and links back to the original site. Nothing terribly exciting. </p>
<p>I'm trying to get an image for each article as well by using the original page's og:image meta tag.</p>
<p>However, I'm finding that a lot of the URLs in the og:image tag return 400, 403 or 404 errors when programatically accessing the images. </p>
<p>Some seem to check for a browser's User Agent string in the headers, so for testing only, I've set my User-Agent string header to that of Safari's: this gets some og:image links working, but it is not an acceptable solution (a crawler masquerading as a browser).</p>
<p>This does not work for the majority of images though, which continue to return 400/403.</p>
<p>Assuming that all the sites I've tested do not have missing image files and they are proactively preventing anyone other than Facebook/Twitter from using those images, is there any other way to reliably and programmatically retrieve images to display in an RSS aggregator? </p>
<p>Feedly etc al all seem to have images for the vast majority of their aggregated content, so I'm not clear as to why I'm having such difficulty.</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29642446</id>
<re:rank scheme="http://stackoverflow.com">-2</re:rank>
<title type="text">Null pointer exception android rss reader application</title>
<category scheme="http://stackoverflow.com/tags" term="java" />
<category scheme="http://stackoverflow.com/tags" term="android" />
<category scheme="http://stackoverflow.com/tags" term="rss" />
<author>
<name>Dan B</name>
<uri>http://stackoverflow.com/users/3275821</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29642446/null-pointer-exception-android-rss-reader-application" />
<published>2015-04-15T05:48:41Z</published>
<updated>2015-04-15T06:46:59Z</updated>
<summary type="html">
<p>I was following a tutorial located at <a href="http://www.androidhive.info/2012/05/android-rss-reader-application-using-sqlite-part-1/" rel="nofollow">http://www.androidhive.info/2012/05/android-rss-reader-application-using-sqlite-part-1/</a> its a 2 parter the link to the 2nd is at the bottom of the first. I typed all the code up and then tried to compile it but I keep receiving this error Caused by: java.lang.NullPointerException
at bsu.edu.cs339.nbanews.MainActivity.onCreate(MainActivity.java:52) which is this line of code </p>
<p>lv.setOnItemClickListener(new OnItemClickListener() {</p>
<p>This project was huge and comes with 9 classes and 9 different xml files so I didnt include them but the url does have all these classes included from the tutorial. Out of curiosity I pasted his code thinking maybe I mistyped something but it gave me the same error on the same line.</p>
<pre><code>public class MainActivity extends Activity {
private ProgressDialog pDialog;
ArrayList&lt;HashMap&lt;String, String&gt;&gt; rssFeedList;
RSSParser rssParser = new RSSParser();
RSSFeed rssFeed;
ImageButton btnAddSite;
String[] sqliteIds;
public static String TAG_ID = "id";
public static String TAG_TITLE = "title";
public static String TAG_LINK = "link";
ListView lv;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.site_list);
btnAddSite = (ImageButton) findViewById(R.id.btnAddSite);
rssFeedList = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
new loadStoreSites().execute();
lv = (ListView) findViewById(R.id.list);
lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView&lt;?&gt; parent, View view,
int position, long id) {
String sqlite_id = ((TextView) view.findViewById(R.id.
sqlite_id)).getText().toString();
Intent in = new Intent(getApplicationContext(),
ListRssItemsActivity.class);
in.putExtra(TAG_ID, sqlite_id);
startActivity(in);
}
});
btnAddSite.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(getApplicationContext(),
AddNewSiteActivity.class);
startActivityForResult(i, 100);
}
});
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == 100) {
Intent intent = getIntent();
finish();
startActivity(intent);
}
}
@Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo
menuInfo) {
if (v.getId()==R.id.list) {
menu.setHeaderTitle("Delete");
menu.add(Menu.NONE, 0, 0, "Delete Feed");
}
}
@Override
public boolean onContextItemSelected(MenuItem item) {
AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo)
item.getMenuInfo();
int menuItemIndex = item.getItemId();
if(menuItemIndex == 0){
RSSDatabaseHandler rssDb = new RSSDatabaseHandler(getApplicationContext());
WebSite site = new WebSite();
site.setId(Integer.parseInt(sqliteIds[info.position]));
rssDb.deleteSite(site);
Intent intent = getIntent();
finish();
startActivity(intent);
}
return true;
}
class loadStoreSites extends AsyncTask&lt;String, String, String&gt; {
@Override
protected void onPreExecute() {
super.onPreExecute();
pDialog = new ProgressDialog(
MainActivity.this);
pDialog.setMessage("Loading websites ...");
pDialog.setIndeterminate(false);
pDialog.setCancelable(false);
pDialog.show();
}
protected String doInBackground(String... args) {
runOnUiThread(new Runnable() {
public void run() {
RSSDatabaseHandler rssDb = new RSSDatabaseHandler(
getApplicationContext());
List&lt;WebSite&gt; siteList = rssDb.getAllSites();
sqliteIds = new String[siteList.size()];
for (int i = 0; i &lt; siteList.size(); i++) {
WebSite s = siteList.get(i);
HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
map.put(TAG_ID, s.getId().toString());
map.put(TAG_TITLE, s.getTitle().toString());
map.put(TAG_LINK, s.getLink().toString());
rssFeedList.add(map);
sqliteIds[i] = s.getId().toString();
}
ListAdapter adapter = new SimpleAdapter(
MainActivity.this,
rssFeedList, R.layout.site_list_row,
new String[] { TAG_ID, TAG_TITLE, TAG_LINK },
new int[] { R.id.sqlite_id, R.id.title, R.id.link });
lv.setAdapter(adapter);
registerForContextMenu(lv);
}
});
return null;
}
protected void onPostExecute(String args) {
pDialog.dismiss();
}
}
}
</code></pre>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29642363</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Getting the error "The underlying connection was closed: An unexpected error occurred on a send" when consuming an Atom feed</title>
<category scheme="http://stackoverflow.com/tags" term="c#" />
<category scheme="http://stackoverflow.com/tags" term="asp.net" />
<category scheme="http://stackoverflow.com/tags" term="rss" />
<category scheme="http://stackoverflow.com/tags" term="atom" />
<author>
<name>DomBurf</name>
<uri>http://stackoverflow.com/users/3668703</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29642363/getting-the-error-the-underlying-connection-was-closed-an-unexpected-error-occ" />
<published>2015-04-15T05:40:30Z</published>
<updated>2015-04-15T05:40:30Z</updated>
<summary type="html">
<p>I'm trying to display my Github activity feed on my web site but am getting the above error.</p>
<p>I have increased the timeout in my web.config as follows.</p>
<pre><code>&lt;httpRuntime executionTimeout="90" /&gt;
</code></pre>
<p>I get the error when attempting to load the feed into an XmlDocument as in the line of code below.</p>
<pre><code>XDocument xDoc = XDocument.Load(rssFeedUrl); //get error on this line of code
</code></pre>
<p>Any help or suggestions much appreciated.</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29636316</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Rendering mRSS feed in Chrome using jsapi</title>
<category scheme="http://stackoverflow.com/tags" term="google-chrome" />
<category scheme="http://stackoverflow.com/tags" term="rss" />
<category scheme="http://stackoverflow.com/tags" term="jsapi" />
<author>
<name>tomdelalune</name>
<uri>http://stackoverflow.com/users/2391383</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29636316/rendering-mrss-feed-in-chrome-using-jsapi" />
<published>2015-04-14T19:58:42Z</published>
<updated>2015-04-14T19:58:42Z</updated>
<summary type="html">
<p>Using google feed api to parse and render a mRSS feed.
I am having issue in chrome as it doesn't show the content...<br>
<strong><a href="http://jsfiddle.net/photous/guafh1ab/" rel="nofollow">JSFIDDLE</a></strong></p>
<p>Any idea why is that?...</p>
<pre><code>function initialize() {
var feed = new google.feeds.Feed("http://www.wdcdn.net/rss/presentation/library/client/robotrepair/id/a51a000c78e6997a1b7d422247cad813");
feed.setNumEntries(99);
feed.load(function(result) {
if (!result.error) {
var container = document.getElementById("feed");
for (var i = 0; i &lt; result.feed.entries.length; i++) {
var entry = result.feed.entries[i];
var img = document.createElement("img");
if (entry.mediaGroups) {
var imgSrc = entry.mediaGroups[0].contents[0].thumbnails[0].url;
img.setAttribute("src", imgSrc);
container.appendChild(img);
}
}
}
});
}
</code></pre>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29633586</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Feeds not opening with domain in blogger</title>
<category scheme="http://stackoverflow.com/tags" term="rss" />
<category scheme="http://stackoverflow.com/tags" term="feed" />
<category scheme="http://stackoverflow.com/tags" term="blogger" />
<category scheme="http://stackoverflow.com/tags" term="feeds" />
<category scheme="http://stackoverflow.com/tags" term="feedburner" />
<author>
<name>vijaykumar</name>
<uri>http://stackoverflow.com/users/4471206</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29633586/feeds-not-opening-with-domain-in-blogger" />
<published>2015-04-14T17:19:22Z</published>
<updated>2015-04-15T13:53:32Z</updated>
<summary type="html">
<p>Iam using feed burner my main problem is <a href="http://www.bloggingwala.com/feed" rel="nofollow">This</a>
I don't know why my website not caches feeds by using domain.com/feed.
While other <a href="http://labnol.org/feed" rel="nofollow">websites</a> or blogs are usually redirecting to the feeds to show in the webpage.
I don't know where the problem occurs I have used ping feed burner and also visited many websites by searching my problem in Google.
Should i add any code in my editor to do this. Thanks in advance.</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29628088</id>
<re:rank scheme="http://stackoverflow.com">2</re:rank>
<title type="text">Printing thumbnails using simpleXML parse - how to return all?</title>
<category scheme="http://stackoverflow.com/tags" term="php" />
<category scheme="http://stackoverflow.com/tags" term="xml" />
<category scheme="http://stackoverflow.com/tags" term="rss" />
<category scheme="http://stackoverflow.com/tags" term="simplexml" />
<author>
<name>NickR93</name>
<uri>http://stackoverflow.com/users/4122049</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29628088/printing-thumbnails-using-simplexml-parse-how-to-return-all" />
<published>2015-04-14T13:03:09Z</published>
<updated>2015-04-15T03:49:13Z</updated>
<summary type="html">
<p>I have looked for this answer to this question on here but I can't seem to find anything which is relevant to this particular issue.</p>
<p>I am currently using simpleXML to parse an RSS feed, in order to return thumbnail images by going through the nodes to parse "media:thumbnail". I have managed to do this and return all thumbnail URLs, so I know that I am getting to the right content, like so:</p>
<pre><code>&lt;?php
$url = "http://feeds.bbci.co.uk/news/rss.xml?edition=uk";
$xml = simplexml_load_file($url);
foreach($xml-&gt;channel-&gt;item as $item) {
$media = $item-&gt;children('media', 'http://search.yahoo.com/mrss/');
foreach($media-&gt;thumbnail as $thumb) {
echo $thumb-&gt;attributes()-&gt;url;
}
}
?&gt;
</code></pre>
<p>This echos all the image urls. But when I store this in to a variable and try to echo this later as the img src, it only returns one image, rather than all:</p>
<pre><code>&lt;?php
$url = "http://feeds.bbci.co.uk/news/rss.xml?edition=uk";
$xml = simplexml_load_file($url);
foreach($xml-&gt;channel-&gt;item as $item) {
$media = $item-&gt;children('media', 'http://search.yahoo.com/mrss/');
foreach($media-&gt;thumbnail as $thumb) {
$image = $thumb-&gt;attributes()-&gt;url;
}
}
?&gt;
&lt;div&gt;&lt;img src = &lt;?php echo $image; ?&gt; /&gt;&lt;/div&gt;
</code></pre>
<p>How can I echo all of the URLs in to individual images? Thanks for looking.</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29618940</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Multiple feed is not working properly with SimplePie</title>
<category scheme="http://stackoverflow.com/tags" term="rss" />
<category scheme="http://stackoverflow.com/tags" term="simplepie" />
<author>
<name>Roon13</name>
<uri>http://stackoverflow.com/users/4462906</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29618940/multiple-feed-is-not-working-properly-with-simplepie" />
<published>2015-04-14T03:59:49Z</published>
<updated>2015-04-14T03:59:49Z</updated>
<summary type="html">
<p>I am trying to get multiple feeds from various sites. But whenever I run the script it gives me feeds from either one site and sometimes from all the sites specified in the script.
Here is the code from <strong>Simplepie</strong> -</p>
<pre><code>/ Include the SimplePie library
// For 1.0-1.2:
#require_once('simplepie.inc');
// For 1.3+:
require_once('autoloader.php');
// Create a new SimplePie object
$feed = new SimplePie();
$feed-&gt;set_feed_url(array(
'http://digg.com/rss/index.xml',
'http://feeds.tuaw.com/weblogsinc/tuaw',
'http://feeds.uneasysilence.com/uneasysilence/blog'
));
// We'll use favicon caching here (Optional)
$feed-&gt;set_favicon_handler('handler_image.php');
// Initialize the feed object
$feed-&gt;init();
// This will work if all of the feeds accept the same settings.
$feed-&gt;handle_content_type();
// Begin our XHTML markup
?&gt;&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
&lt;head&gt;
&lt;title&gt;Awesome feeds&lt;/title&gt;
&lt;link rel="stylesheet" href="../demo/for_the_demo/simplepie.css"
type="text/css" media="screen" charset="utf-8" /&gt;
&lt;style type="text/css"&gt;
h4.title {
/* We're going to add some space next to the titles so we can fit
the 16x16 favicon image. */
background-color:transparent;
background-repeat:no-repeat;
background-position:0 1px;
padding-left:20px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="site"&gt;
&lt;?php if ($feed-&gt;error): ?&gt;
&lt;p&gt;&lt;?php echo $feed-&gt;error; ?&gt;&lt;/p&gt;
&lt;?php endif; ?&gt;
&lt;h1&gt;Awesome feeds&lt;/h1&gt;
&lt;?php foreach ($feed-&gt;get_items() as $item): ?&gt;
&lt;div class="chunk"&gt;
&lt;?php /* Here, we'll use the $item-&gt;get_feed() method to gain access to the parent feed-level data for the specified item. */ ?&gt;
&lt;h4 class="title" style="background-image:url(&lt;?php $feed = $item-&gt;get_feed(); echo $feed-&gt;get_favicon(); ?&gt;);"&gt;&lt;a href="&lt;?php echo $item-&gt;get_permalink(); ?&gt;"&gt;&lt;?php echo $item-&gt;get_title(); ?&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;?php echo $item-&gt;get_content(); ?&gt;
&lt;p class="footnote"&gt;Source: &lt;a href="&lt;?php $feed = $item-&gt;get_feed(); echo $feed-&gt;get_permalink(); ?&gt;"&gt;&lt;?php $feed = $item-&gt;get_feed(); echo $feed-&gt;get_title(); ?&gt;&lt;/a&gt; | &lt;?php echo $item-&gt;get_date('j M Y | g:i a T'); ?&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;?php endforeach; ?&gt;
&lt;/div&gt;
</code></pre>
<p>
</p>
<p>Does anybody have idea what is going wrong with the current script??
I searched for information related to this but I got no help.</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29596390</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">how to Parse a HTML Page to find RSS Links for a iOS Safari App Extension</title>
<category scheme="http://stackoverflow.com/tags" term="html" />
<category scheme="http://stackoverflow.com/tags" term="ios" />
<category scheme="http://stackoverflow.com/tags" term="safari" />
<category scheme="http://stackoverflow.com/tags" term="rss" />
<category scheme="http://stackoverflow.com/tags" term="ios-app-extension" />
<author>
<name>Ash-Bash32</name>
<uri>http://stackoverflow.com/users/1858000</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29596390/how-to-parse-a-html-page-to-find-rss-links-for-a-ios-safari-app-extension" />
<published>2015-04-13T00:49:13Z</published>
<updated>2015-04-13T00:49:13Z</updated>
<summary type="html">
<p>Im trying to find a Example/Tutorial of a Way to Parse a HTML File From Safari URL for My App Extension that I'm making. My Problem is that i can't find a way to Parse the HTMl File and look for any RSS Links and then Display the Results in a TableView With its Correct Title and RSS URL.(Of Cause if No Results Come Back Give a Error Message Stating theres no RSS Links)</p>
<p>Heres a Mock up off my App Extension :-
<img src="http://i.stack.imgur.com/wlFne.png" alt="enter image description here"></p>
<p>So is there a tutorial or something that can help with my Problem</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29595863</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Meteor rss project returns exit code 8</title>
<category scheme="http://stackoverflow.com/tags" term="javascript" />
<category scheme="http://stackoverflow.com/tags" term="meteor" />
<category scheme="http://stackoverflow.com/tags" term="rss" />
<author>
<name>Actionman</name>
<uri>http://stackoverflow.com/users/3225038</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29595863/meteor-rss-project-returns-exit-code-8" />
<published>2015-04-12T23:26:44Z</published>
<updated>2015-04-12T23:26:44Z</updated>
<summary type="html">
<p>I am trying to run the project at <a href="https://github.com/AVGP/meteor-example-meteorss" rel="nofollow">https://github.com/AVGP/meteor-example-meteorss</a> but it keeps crashing when I try to run it</p>
<pre><code>W20150412-19:16:54.544(-4)? (STDERR)
W20150412-19:16:54.943(-4)? (STDERR) /Users/user/.meteor/packages/meteor-tool/.1.0.38.z83ibe++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:173
W20150412-19:16:54.944(-4)? (STDERR) throw(ex);
W20150412-19:16:54.944(-4)? (STDERR) ^
W20150412-19:16:54.944(-4)? (STDERR) TypeError: undefined is not a function
W20150412-19:16:54.945(-4)? (STDERR) at app/RSSReader.js:24:20
W20150412-19:16:54.945(-4)? (STDERR) at app/RSSReader.js:49:3
W20150412-19:16:54.946(-4)? (STDERR) at /Users/user/Work/RSSReader/.meteor/local/build/programs/server/boot.js:175:10
W20150412-19:16:54.946(-4)? (STDERR) at Array.forEach (native)
W20150412-19:16:54.946(-4)? (STDERR) at Function._.each._.forEach (/Users/user/.meteor/packages/meteor-tool/.1.0.38.z83ibe++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150412-19:16:54.946(-4)? (STDERR) at /Users/user/Work/RSSReader/.meteor/local/build/programs/server/boot.js:86:5
=&gt; Exited with code: 8
</code></pre>
<p>Not sure how to fix the error or what it is exactly.</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29587956</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Android Parsing Amazon XML feed rss with image url</title>
<category scheme="http://stackoverflow.com/tags" term="android" />
<category scheme="http://stackoverflow.com/tags" term="xml" />
<category scheme="http://stackoverflow.com/tags" term="parsing" />
<category scheme="http://stackoverflow.com/tags" term="rss" />
<author>
<name>Nonjoe</name>
<uri>http://stackoverflow.com/users/4509224</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29587956/android-parsing-amazon-xml-feed-rss-with-image-url" />
<published>2015-04-12T09:31:09Z</published>
<updated>2015-04-12T09:31:09Z</updated>
<summary type="html">
<p>I'm parsing this Amazon xml rss feed: <a href="http://www.amazon.com/gp/rss/bestsellers/books/ref=zg_bs_books_rsslink/182-7950400-1121525" rel="nofollow">http://www.amazon.com/gp/rss/bestsellers/books/ref=zg_bs_books_rsslink/182-7950400-1121525</a> and correctly getting titles and authors to put in a listview.
Now I would parse the cover image too and correctly obtaining the image link.
Tried to modify the custom adapter but I'm not able to.
Created an ImageView per row but how populate it?
Help or suggestion would be much appreciated. Thanks in advance.</p>
<pre><code>public class AmActivity extends Activity {
ImageView imageView;
Bitmap bitmap;
ProgressDialog pDialog;
private class RowItem {
String title = null;
String description = null;
String url = null;
public RowItem(String title, String description, String url) {
this.title = title;
this.description = description;
this.url = url;
}
}
private class DownloadXMLTask extends AsyncTask&lt;String, Void, String&gt; {
ArrayList&lt;RowItem&gt; items = null;
public DownloadXMLTask(ArrayList&lt;RowItem&gt; items) {
this.items = items;
}
private String getNodeValue(Element entry, String tag) {
Element tagElement = (Element) entry.getElementsByTagName(tag).item(0);
return tagElement.getFirstChild().getNodeValue();
}
public String downloadAndParseXML(String url) {
try {
InputStream in = new java.net.URL(url).openStream();
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document dom = db.parse(in);
Element documentElement = dom.getDocumentElement();
NodeList nodes = documentElement.getElementsByTagName("item");
for (int i = 0; i &lt; nodes.getLength(); i++) {
Element entry = (Element) nodes.item(i);
String title = getNodeValue(entry, "title");
title= title.substring(4);
//title = title.subString(0, title.getIndex("(") - 1);
String description = getNodeValue(entry, "description");
int startIndex = description.lastIndexOf("Contributor");
String newstr = description.substring(startIndex);
newstr = newstr.substring(13);
String str = newstr.substring(0, newstr.indexOf(' '));
String stri = newstr.substring(newstr.indexOf(' ')+1);
String def = str.concat(" ").concat(stri);
def = def.substring(0, def.indexOf('&lt;')-1);
String img=description.substring(description.indexOf("img src=")+9);
img=img.substring(0, img.indexOf("jpg")+3);
//int endIndex = description.lastIndexOf("span");
//String str= newstr.substring(endIndex);
String link = getNodeValue(entry, "link");
// add them to your list
items.add(new RowItem(title, def, link));
}
}catch (Exception e) {
e.printStackTrace();
}
return null;
}
protected String doInBackground(String... urls) {
if (urls.length &lt;= 0)
return null;
return downloadAndParseXML(urls[0]);
}
protected void onPostExecute(String result) {
updateList(items);
}
}
public void updateList(ArrayList&lt;RowItem&gt; items) {
CustomArrayAdapter adapter = new CustomArrayAdapter(this,
R.layout.rowview, items);
listView.setAdapter(adapter);
}
private class CustomArrayAdapter extends ArrayAdapter&lt;RowItem&gt; {
Context context;
List&lt;RowItem&gt; items;
private class ViewHolder {
public TextView title;
public TextView description;
public ImageView imageView;
}
public CustomArrayAdapter(Context context, int resource,
List&lt;RowItem&gt; items) {
super(context, resource, items);
this.context = context;
this.items = items;
}
@Override
public View getView(int position, View rowView, ViewGroup parent){
//reuse the rowView if possible - for efficiency and less memory consumption
if (rowView == null){
LayoutInflater inflater = (LayoutInflater)
context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
rowView = inflater.inflate(R.layout.rowview, null);
//configure view holder
ViewHolder viewHolder = new ViewHolder();
viewHolder.title = (TextView)
rowView.findViewById(R.id.title);
viewHolder.description = (TextView)
rowView.findViewById(R.id.description);
viewHolder.imageView = (ImageView)
rowView.findViewById(R.id.imageView);
rowView.setTag(viewHolder);
}
//set the view
ViewHolder holder = (ViewHolder) rowView.getTag();
RowItem item = items.get(position);
holder.title.setText(item.title);
holder.description.setText(item.description);
return rowView;
}
}
ListView listView;
ArrayList&lt;RowItem&gt; items;
Context context;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_am);
context = getApplicationContext();
ActionBar actionBar = getActionBar();
assert actionBar != null;
actionBar.hide();
listView = (ListView) findViewById(R.id.list);
items = new ArrayList&lt;RowItem&gt;();
new DownloadXMLTask(items).execute(getString(R.string.feedurl));
</code></pre>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29585571</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">How can I do export of rss-feed with my notes from the inoreader.com folder?</title>
<category scheme="http://stackoverflow.com/tags" term="rss" />
<category scheme="http://stackoverflow.com/tags" term="feed" />
<author>
<name>Stas</name>
<uri>http://stackoverflow.com/users/4762126</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29585571/how-can-i-do-export-of-rss-feed-with-my-notes-from-the-inoreader-com-folder" />
<published>2015-04-12T03:19:05Z</published>
<updated>2015-04-12T08:42:23Z</updated>
<summary type="html">
<p>I don't see the notes in the generated xml.<br>
How I can add this field to the output xml?</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29582141</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Im trying to extract images from the following xml feed using ns regular expression but i can't seem to get the pattern [on hold]</title>
<category scheme="http://stackoverflow.com/tags" term="regex" />
<category scheme="http://stackoverflow.com/tags" term="xml" />
<category scheme="http://stackoverflow.com/tags" term="rss" />
<author>
<name>Nikhil Gilbert</name>
<uri>http://stackoverflow.com/users/4777909</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29582141/im-trying-to-extract-images-from-the-following-xml-feed-using-ns-regular-express" />
<published>2015-04-11T19:34:24Z</published>
<updated>2015-04-11T19:51:55Z</updated>
<summary type="html">
<p>xml feed: <a href="http://varsitynewspaper.co.za/rss.xml" rel="nofollow">http://varsitynewspaper.co.za/rss.xml</a>
im currently using swift to parse these images into an iphone app
here are the ones I've tried:</p>
<pre><code>/&lt;img[^&gt;]+src="([^"&gt;]+)"/
"src=\"([^\"]+)\"";
</code></pre>
<p>i know its only two, but i just don't seem to be getting how this pattern works</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/q/29581650</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Incorrect rss encoding sometimes</title>
<category scheme="http://stackoverflow.com/tags" term="c#" />
<category scheme="http://stackoverflow.com/tags" term="rss" />
<category scheme="http://stackoverflow.com/tags" term="windows-phone" />
<author>
<name>juhariis</name>
<uri>http://stackoverflow.com/users/573279</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/29581650/incorrect-rss-encoding-sometimes" />
<published>2015-04-11T18:42:11Z</published>
<updated>2015-04-15T14:23:21Z</updated>
<summary type="html">
<p>I am working on rss feed reader project for Windows Phone. I use the construct below for reading feed in.