|
Posted by michael.risch.wvu on 01/31/08 17:43
Hi -
I am generating an RSS feed for a wiki and a blog. The blog feed
works fine, but the wiki feed has an issue with the print function
(note that I have tested with echo, printf, print_r, with the same
results).
Here is the problem - with the wiki feed, the print command adds a
newline at the beginning of the feed, such that rss readers don't
recognize the XML. This line does not get generated with nearly
identical blog text. Debugging shows no such newline in the variable
contents just prior to the print command.
Perhaps someone can test/verify and/or let me know why one works and
one doesn't. The text is below.
Thanks in advance for any help.
Regards,
Michael Risch
Here is the text that fails:
<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="Tiki CMS/Groupware via FeedCreator 1.7.2.1" -->
<?xml-stylesheet href="http://localhost/tiki/lib/rss/rss-style.css"
type="text/css"?>
<rss version="0.91">
<channel>
<title>Cases of Interest Feed</title>
<description><![CDATA[The latest wiki entries on
CasesOfInterest.com]]></description>
<link>http://localhost/tiki/tiki-wiki_rss.php?
&XDEBUG_SESSION_START=PHPEdit&XDEBUG_PROFILE</link>
<lastBuildDate>Thu, 31 Jan 2008 12:40:01 +0100</lastBuildDate>
<generator>Tiki CMS/Groupware via FeedCreator 1.7.2.1</
generator>
<image>
<url>http://localhost/tiki/img/tiki.jpg</url>
<title>CasesofInterest.com</title>
<link>http://localhost/tiki/tiki-index.php</link>
<description><![CDATA[Feed provided by
CasesofInterest.com. Click to visit.]]></description>
</image>
<language>en-us</language>
<item>
<title>Cases of Interest</title>
<link>http://localhost/tiki/tiki-index.php?page=Cases+of
+Interest</link>
<description><![CDATA[<style TYPE="text/css"> .diffchar
{ color:red; } </style>+ </li><li><a class="wiki external"
target="_blank" href="http://www.casesofinterest.com/tiki/tiki-
browse_categories.php?parentId=78&deep=on">Cyberlaw</a><img
border="0" class="externallink" src="img/icons/external_link.gif"
alt="external link" />]]></description>
<author>admin</author>
<pubDate>Tue, 29 Jan 2008 13:30:02 +0100</pubDate>
</item>
</channel>
</rss>
And here is the text that works
<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="Tiki CMS/Groupware via FeedCreator 1.7.2.1" -->
<?xml-stylesheet href="http://localhost/tiki/lib/rss/rss-style.css"
type="text/css"?>
<rss version="0.91">
<channel>
<title>Tiki RSS feed for weblogs</title>
<description></description>
<link>http://localhost/tiki/tiki-blogs_rss.php?
&XDEBUG_SESSION_START=PHPEdit&XDEBUG_PROFILE</link>
<lastBuildDate>Thu, 31 Jan 2008 17:36:57 +0100</lastBuildDate>
<generator>Tiki CMS/Groupware via FeedCreator 1.7.2.1</
generator>
<image>
<url>http://localhost/tiki/img/tiki.jpg</url>
<title>CasesofInterest.com</title>
<link>http://localhost/tiki/tiki-index.php</link>
<description><![CDATA[Feed provided by
CasesofInterest.com. Click to visit.]]></description>
</image>
<language>en-us</language>
<item>
<title>Everything is Patentable on SSRN</title>
<link>http://localhost/tiki/tiki-view_blog_post.php?
blogId=1&postId=22</link>
<description><![CDATA[I previously posted a presentation
of "Everything is Patentable" at the IP Scholars Conference.<br />
<br />
A draft of the paper is now available at SSRN:<br />
<a target="_blank" class="wiki external" href="http://papers.ssrn.com/
abstract=1085871">http://papers.ssrn.com/abstract=1085871<img
border="0" class="externallink" src="img/icons/external_link.gif"
alt="external link" /></a><br />
]]></description>
<author>admin</author>
<pubDate>Fri, 25 Jan 2008 18:26:14 +0100</pubDate>
</item>
<item>
<title>Everything is Patentable presentation</title>
<link>http://localhost/tiki/tiki-view_blog_post.php?
blogId=1&postId=21</link>
<description><![CDATA[<a class="wiki external"
target="_blank" href="http://www.law.depaul.edu/">DePaul Law School</
a><img border="0" class="externallink" src="img/icons/
external_link.gif" alt="external link" /> <a class="wikicache"
target="_blank" href="tiki-view_cache.php?url=http%3A%2F
%2Fwww.law.depaul.edu%2F">(cache)</a> has made available my August
2007 presentation of <a title="Everything is Patentable"
href='Everything+is+Patentable' class='wiki'>Everything is Patentable</
a> at the <a class="wiki external" target="_blank" href="http://
www.law.depaul.edu/centers_institutes/ciplit/ipsc/schedule.asp#day_two">IP
Scholars Conference</a><img border="0" class="externallink" src="img/
icons/external_link.gif" alt="external link" />.<br />
]]></description>
<author>admin</author>
<pubDate>Mon, 24 Dec 2007 15:50:21 +0100</pubDate>
</item>
<item>
<title>Why Do We Have Trade Secrets presentation</title>
<link>http://localhost/tiki/tiki-view_blog_post.php?
blogId=1&postId=20</link>
<description><![CDATA[Santa Clara's IP student group has
posted this video of my recent presentation of my article "Why Do We
Have Trade Secrets?".<br />
<br />
<a class="wiki external" target="_blank" href="http://video.google.com/
videoplay?docid=4941401046842694563">Why Do We Have Trade Secrets?</
a><img border="0" class="externallink" src="img/icons/
external_link.gif" alt="external link" /> <a class="wikicache"
target="_blank" href="tiki-view_cache.php?url=http%3A%2F
%2Fvideo.google.com%2Fvideoplay%3Fdocid
%3D4941401046842694563">(cache)</a><br />
]]></description>
<author>admin</author>
<pubDate>Sun, 25 Mar 2007 16:06:16 +0100</pubDate>
</item>
<item>
<title>Law Teaching Resources</title>
<link>http://localhost/tiki/tiki-view_blog_post.php?
blogId=1&postId=15</link>
<description><![CDATA[I've added a new category on law
teaching market resources. These are resources I found helpful during
the job search process. I hope you find them helpful, and I hope
others add their resources over time.<br />
<br />
<a class="wiki external" target="_blank" href="http://
www.casesofinterest.com/tiki/tiki-browse_categories.php?parentId=59&deep=off">Law
Teaching Job Market Resources</a><img border="0" class="externallink"
src="img/icons/external_link.gif" alt="external link" /><br />
]]></description>
<author>admin</author>
<pubDate>Sun, 04 Mar 2007 14:54:33 +0100</pubDate>
</item>
<item>
<title>WVU and other hiring...</title>
<link>http://localhost/tiki/tiki-view_blog_post.php?
blogId=1&postId=13</link>
<description><![CDATA[As I said in my last post, I've
accepted a position. In the Fall of 2007 I will be an Associate
Professor of Law at the West Virginia University College of Law.
I'll be teaching patents and cyberlaw.<br />
<br />
For this and other entry level hiring, see the Legal Theory Blog:<br /
>
<a class="wiki external" target="_blank" href="http://
lsolum.typepad.com/legaltheory/2007/02/entry_level_hir.html">Legal
Theory Blog</a><img border="0" class="externallink" src="img/icons/
external_link.gif" alt="external link" /> <a class="wikicache"
target="_blank" href="tiki-view_cache.php?url=http%3A%2F
%2Flsolum.typepad.com%2Flegaltheory
%2F2007%2F02%2Fentry_level_hir.html">(cache)</a><br />
]]></description>
<author>admin</author>
<pubDate>Sat, 10 Feb 2007 01:19:02 +0100</pubDate>
</item>
<item>
<title>Update</title>
<link>http://localhost/tiki/tiki-view_blog_post.php?
blogId=1&postId=12</link>
<description><![CDATA[It's been a while since I've had
time to post. I've successfully navigated the law school faculty
recruiting <a class="wiki external" target="_blank" href="http://
www.aals.org/services_recruitment.php">market</a><img border="0"
class="externallink" src="img/icons/external_link.gif" alt="external
link" /> <a class="wikicache" target="_blank" href="tiki-
view_cache.php?url=http%3A%2F%2Fwww.aals.org
%2Fservices_recruitment.php">(cache)</a>; I just accepted a tenure-
track position at a great law school. More details to follow.<br />
<br />
With the market behind me, I am beginning a new research project,
which means I will be posting more <a title="Cases Of Interest"
href='Cases+Of+Interest' class='wiki'>Cases Of Interest</a> in the
near future!<br />
]]></description>
<author>admin</author>
<pubDate>Sun, 03 Dec 2006 19:59:13 +0100</pubDate>
</item>
<item>
<title>Not much new to report...</title>
<link>http://localhost/tiki/tiki-view_blog_post.php?
blogId=1&postId=11</link>
<description><![CDATA[June was a busy month for me, and
I'm spending most of my time working on my latest law review article.
I did add one interesting case:<br />
<br />
<ul><li><a title="Cooley v Superior Court" href='Cooley+v+Superior
+Court' class='wiki'>Cooley v Superior Court</a> about deposition
subpoena practice.
</li></ul>
]]></description>
<author>admin</author>
<pubDate>Fri, 07 Jul 2006 20:49:33 +0100</pubDate>
</item>
<item>
<title>New additions</title>
<link>http://localhost/tiki/tiki-view_blog_post.php?
blogId=1&postId=10</link>
<description><![CDATA[I've added two IP cases this
week:<br />
<br />
<ul><li><a class="wiki" href="tiki-index.php?page=Primos%20v%20Hunter
%27s%20Specialties">Primos v Hunter's Specialties</a> - application of
prosecution history estoppel to patent claim amendments
</li><li><a title="Release for "life story" bars co-authorship claim
in movie" href='Marder+v+Lopez' class='wiki'>Marder v Lopez</a> -
broad general release bars later claim of copyright co-ownership
</li></ul>
]]></description>
<author>admin</author>
<pubDate>Thu, 15 Jun 2006 02:35:58 +0100</pubDate>
</item>
<item>
<title></title>
<link>http://localhost/tiki/tiki-view_blog_post.php?
blogId=1&postId=9</link>
<description><![CDATA[I added a bunch of cases in the <a
class="wiki external" target="_blank" href="http://
www.michaelrisch.com/tiki/tiki-browse_categories.php?parentId=45">patent
claim construction</a><img border="0" class="externallink" src="img/
icons/external_link.gif" alt="external link" /> category today. I am
doing my next article on this topic, so it's natural I chose to add
these.<br />
]]></description>
<author>admin</author>
<pubDate>Sun, 11 Jun 2006 03:33:53 +0100</pubDate>
</item>
<item>
<title>Cases of Interest is live</title>
<link>http://localhost/tiki/tiki-view_blog_post.php?
blogId=1&postId=8</link>
<description><![CDATA[<a target="_blank" class="wiki
external" href="http://
www.casesofinterest.com">www.casesofinterest.com<img border="0"
class="externallink" src="img/icons/external_link.gif" alt="external
link" /></a> is now live! It points to the cases of interest
wiki.<br />
]]></description>
<author>admin</author>
<pubDate>Thu, 08 Jun 2006 14:03:14 +0100</pubDate>
</item>
</channel>
</rss>
Navigation:
[Reply to this message]
|