
Any ideas on how to parse an xml feed in wordpress? -- Dilettante is good, know-it-all is bad.

Actually, if I am correct there is a plugin by default (called widget then) enabling you to parse any RSS2-compliant XML and output content in sidebar (often used to output content from other blogs). For this to work, your theme must be a kubrik-one or a "widgetizing themes" ( http://codex.wordpress.org/Widgetizing_Themes), then go to widgets and add the widget to your right or left sidebar. Easy as ABC. Otherwise, you can right your own plugin/function in PHP to parse/read XML files. Google for one if you can't code one. There are many way to parse XML, some methods can be very heavy in memory and CPU usage (DOM method). If your XML file is RSS/RSS2/Atom compliant, then this should be easy. If not, I suggest you go for XSL transformation method (XML/XSL/XSLT). Tommy On Tue, Nov 3, 2009 at 7:57 PM, comark maloba <malobacomark@gmail.com>wrote:
Any ideas on how to parse an xml feed in wordpress? -- Dilettante is good, know-it-all is bad.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

thanks man, I totally skipped the wordpress RSS widget. On 11/3/09, TheBigBoss <thebigboss@peperuka.com> wrote:
Actually, if I am correct there is a plugin by default (called widget then) enabling you to parse any RSS2-compliant XML and output content in sidebar (often used to output content from other blogs). For this to work, your theme must be a kubrik-one or a "widgetizing themes" ( http://codex.wordpress.org/Widgetizing_Themes), then go to widgets and add the widget to your right or left sidebar. Easy as ABC.
Otherwise, you can right your own plugin/function in PHP to parse/read XML files. Google for one if you can't code one. There are many way to parse XML, some methods can be very heavy in memory and CPU usage (DOM method). If your XML file is RSS/RSS2/Atom compliant, then this should be easy. If not, I suggest you go for XSL transformation method (XML/XSL/XSLT).
Tommy
On Tue, Nov 3, 2009 at 7:57 PM, comark maloba <malobacomark@gmail.com>wrote:
Any ideas on how to parse an xml feed in wordpress? -- Dilettante is good, know-it-all is bad.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
-- Dilettante is good, know-it-all is bad.
participants (2)
-
comark maloba
-
TheBigBoss