homepage Welcome to WebmasterWorld Guest from 107.20.131.154
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
Forum Library, Charter, Moderators: bill & werty

RSS, ATOM, and Related Technologies Forum

    
Php xml reader code
Image problem
armator




msg:3599342
 8:54 am on Mar 13, 2008 (gmt 0)

Dear Friends

I trying to read with several php reader code to following address which it shows all texts but does not show image files.

Could you please offer me which php reader I can use ?

Address ;

<snip>

Thanks alot your kind helps.

Best Regards
armator

[edited by: bill at 9:19 am (utc) on Mar. 13, 2008]
[edit reason] Sorry, no example URLs allowed. [/edit]

 

bill




msg:3599357
 9:24 am on Mar 13, 2008 (gmt 0)

Have you tried validating the feed?

[validator.w3.org...]

armator




msg:3599366
 9:54 am on Mar 13, 2008 (gmt 0)

Yes I tried

bill




msg:3599429
 11:44 am on Mar 13, 2008 (gmt 0)

Does it validate?

armator




msg:3600550
 2:15 pm on Mar 14, 2008 (gmt 0)

Yes it is validate

bill




msg:3600715
 4:30 pm on Mar 14, 2008 (gmt 0)

OK, then perhaps you could explain your problem a bit more?

armator




msg:3601407
 12:18 pm on Mar 15, 2008 (gmt 0)

Dear bill

Thanks your kind interest.

You kindly find the sample of xml file as below .

code
-----
<?xml version="1.0" encoding="ISO-8859-9" ?>

<rss version="2.0"><channel><title>example.com</title>
<link>http://www.example.com</link>
<description>news</description>
<image><title>example.com</title>
<link>example.com</link>
<url>http://www.example.com/images/rsslogo.gif</url>
<width>95</width><height>31</height>
<description>news</description></image>

<item>
<title><![CDATA["breaking news"]]></title>
<link><![CDATA[http://www.example.com/news.aspx?id=432827&cat_id=1]]></link>
<description><![CDATA[text text text..]]>
</description>
<pubDate><![CDATA[15.03.2008 14:04:00]]></pubDate>
<img><![CDATA[http://www.example.com/images/blabla/blabla.jpg]]></img>
</item>

</channel></rss>
-----

Thanks advance your kind helps.

My best wishes
armator

[edited by: bill at 1:55 pm (utc) on Mar. 15, 2008]
[edit reason] please use example.com for code samples [/edit]

bill




msg:3601456
 2:07 pm on Mar 15, 2008 (gmt 0)

I don't see in the RSS 2.0 spec [cyber.law.harvard.edu] where you can have an <img> tag in the <item>. That would not validate.

armator




msg:3601580
 7:28 pm on Mar 15, 2008 (gmt 0)

Dear Bill

As I understand you say this xml file is not validate . Is not it ?

bill




msg:3601853
 5:16 am on Mar 16, 2008 (gmt 0)

This RSS file does not validate.

armator




msg:3601944
 8:42 am on Mar 16, 2008 (gmt 0)

Dear Bill

Thanks alot.

I am generaly using lastrss.php and is it possible to add any command
in this php code for parse above xml code ?

bill




msg:3603730
 6:13 am on Mar 18, 2008 (gmt 0)

It would probably help if you had a validating RSS feed to work with. Try a known valid feed like the one from this forum:
[webmasterworld.com...]

lastrss.php
I'm not familiar with that package. The author does appear to have contact information on the product's website.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved