<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>China Blog by Chinaorbit.com &#187; XML</title>
	<atom:link href="http://blog.chinaorbit.com/tag/xml/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.chinaorbit.com</link>
	<description>Blog about our experience as expats living and working in Beijing.</description>
	<lastBuildDate>Sun, 27 Jun 2010 16:38:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to validate RSS-Feeds</title>
		<link>http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html</link>
		<comments>http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html#comments</comments>
		<pubDate>Sat, 11 Apr 2009 09:31:21 +0000</pubDate>
		<dc:creator>Kim Schiefer</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[HMTL]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://blog.chinaorbit.com/?p=158</guid>
		<description><![CDATA[Validating RSS-feeds can be quite difficult, espacially if you have a website with user generated content and people use some strange characters in their own language, for example &#8220;ä&#8221; (&#38;auml;) . If this HTML-entity is saved like this : &#8220;&#38;auml;&#8221; in your database you have  a problem because  XML only has 5 predefined entities. If [...]]]></description>
			<content:encoded><![CDATA[<!-- AdSense Now V1.94 -->
<!-- Post[count: 2] -->
<div class="adsense adsense-leadin" style="float:left;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-9818472346944621";
/* blog-chinaseite.de */
google_ad_slot = "9937403562";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>Validating RSS-feeds can be quite difficult, espacially if you have a website with user generated content and people use some strange characters in their own language, for example &#8220;ä&#8221; (&amp;auml;) . If this HTML-entity is saved like this : &#8220;&amp;auml;&#8221; in your database you have  a problem because  XML only has 5 predefined entities.</p>
<p>If your document is read by an XML parser that does not or cannot read external entities, then only the five built-in XML character entities  can safely be used.To get your RSS-feed valid, you need to write a function to encode and decode and I found a nice one here:</p>
<p>http://www.sourcerally.net/Scripts/39-Convert-HTML-Entities-to-XML-Entities.</p>
<div class="ilsb-parent ilsb-arial"><a href="#" class="ilsb ilsb-share">Bookmark this article</a><br /><div class="ilsb-child"><span><a rel="nofollow" href="http://blog.chinaorbit.com/feed" class="ilsb ilsb-subscribe" title="Subscribe to RSS" onclick="window.open(this.href, '_blank', 'scrollbars=yes, menubar=no, border=0, height=600, width=800, resizable=yes, toolbar=no, location=no, status=no'); return false;" >Subscribe</a></span><span><a rel="nofollow" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html&amp;Title=How+to+validate+RSS-Feeds" class="ilsb ilsb-blinklist" title="Add to Blinklist" onclick="window.open(this.href, '_blank', 'scrollbars=yes, menubar=no, border=0, height=600, width=800, resizable=yes, toolbar=no, location=no, status=no'); return false;" >Blinklist</a></span><span><a rel="nofollow" href="http://www.bloglines.com/sub/http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html" class="ilsb ilsb-bloglines" title="Add to Bloglines" onclick="window.open(this.href, '_blank', 'scrollbars=yes, menubar=no, border=0, height=600, width=800, resizable=yes, toolbar=no, location=no, status=no'); return false;" >Bloglines</a></span><span><a rel="nofollow" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html&amp;title=How+to+validate+RSS-Feeds" class="ilsb ilsb-blogmarks" title="Add to Blogmarks" onclick="window.open(this.href, '_blank', 'scrollbars=yes, menubar=no, border=0, height=600, width=800, resizable=yes, toolbar=no, location=no, status=no'); return false;" >Blogmarks</a></span><span><a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html&amp;title=How+to+validate+RSS-Feeds" class="ilsb ilsb-digg" title="Add to Digg" onclick="window.open(this.href, '_blank', 'scrollbars=yes, menubar=no, border=0, height=600, width=800, resizable=yes, toolbar=no, location=no, status=no'); return false;" >Digg</a></span><span><a rel="nofollow" href="http://del.icio.us/post?url=http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html&amp;title=How+to+validate+RSS-Feeds" class="ilsb ilsb-delicious" title="Add to del.icio.us" onclick="window.open(this.href, '_blank', 'scrollbars=yes, menubar=no, border=0, height=600, width=800, resizable=yes, toolbar=no, location=no, status=no'); return false;" >del.icio.us</a></span><span><a rel="nofollow" href="http://www.facebook.com/share.php?u=http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html" class="ilsb ilsb-facebook" title="Share on Facebook" onclick="window.open(this.href, '_blank', 'scrollbars=yes, menubar=no, border=0, height=600, width=800, resizable=yes, toolbar=no, location=no, status=no'); return false;" >Facebook</a></span><span><a rel="nofollow" href="http://www.furl.net/storeIt.jsp?u=http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html&amp;t=How+to+validate+RSS-Feeds" class="ilsb ilsb-furl" title="Add to Furl" onclick="window.open(this.href, '_blank', 'scrollbars=yes, menubar=no, border=0, height=600, width=800, resizable=yes, toolbar=no, location=no, status=no'); return false;" >Furl</a></span><span><a rel="nofollow" href="http://ma.gnolia.com/bookmarklet/add?url=http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html&amp;title=How+to+validate+RSS-Feeds" class="ilsb ilsb-magnolia" title="Add to Magnolia" onclick="window.open(this.href, '_blank', 'scrollbars=yes, menubar=no, border=0, height=600, width=800, resizable=yes, toolbar=no, location=no, status=no'); return false;" >Ma.gnolia</a></span><span><a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html&amp;h=How+to+validate+RSS-Feeds" class="ilsb ilsb-newsvine" title="Add to NewsVine" onclick="window.open(this.href, '_blank', 'scrollbars=yes, menubar=no, border=0, height=600, width=800, resizable=yes, toolbar=no, location=no, status=no'); return false;" >NewsVine</a></span><span><a rel="nofollow" href="http://reddit.com/submit?url=http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html&amp;title=How+to+validate+RSS-Feeds" class="ilsb ilsb-reddit" title="Add to Reddit" onclick="window.open(this.href, '_blank', 'scrollbars=yes, menubar=no, border=0, height=600, width=800, resizable=yes, toolbar=no, location=no, status=no'); return false;" >Reddit</a></span><span><a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html&amp;title=How+to+validate+RSS-Feeds" class="ilsb ilsb-stumbleupon" title="Add to StumbleUpon" onclick="window.open(this.href, '_blank', 'scrollbars=yes, menubar=no, border=0, height=600, width=800, resizable=yes, toolbar=no, location=no, status=no'); return false;" >StumbleUpon</a></span><span><a rel="nofollow" href="http://technorati.com/faves?add=http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html" class="ilsb ilsb-technorati" title="Add to Technorati" onclick="window.open(this.href, '_blank', 'scrollbars=yes, menubar=no, border=0, height=600, width=800, resizable=yes, toolbar=no, location=no, status=no'); return false;" >Technorati</a></span></div></div>]]></content:encoded>
			<wfw:commentRss>http://blog.chinaorbit.com/2009/04/11/how-to-validate-rss-feeds.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

