<?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>Kris Range &#187; validation</title>
	<atom:link href="http://blog.krisrange.com/tag/validation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.krisrange.com</link>
	<description>Web development</description>
	<lastBuildDate>Fri, 16 Sep 2011 15:23:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Spotify url validation</title>
		<link>http://blog.krisrange.com/2010/05/spotify-url-validation/</link>
		<comments>http://blog.krisrange.com/2010/05/spotify-url-validation/#comments</comments>
		<pubDate>Mon, 31 May 2010 06:28:13 +0000</pubDate>
		<dc:creator>krange</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[spotify]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://blog.krisrange.com/?p=43</guid>
		<description><![CDATA[I created this class for a project I am working on where I need to validate Spotify playlist and track URLs. I hope someone will get some use out of it or maybe improve it. It provides two static methods for validating and allows you to specify the return type which currently is a HTTP [...]]]></description>
			<content:encoded><![CDATA[<p>I created this class for a project I am working on where I need to validate Spotify playlist and track URLs. I hope someone will get some use out of it or maybe improve it. It provides two static methods for validating and allows you to specify the return type which currently is a HTTP or Spotify URL format.</p>
<p><a href="http://www.krisrange.com/code/SpotifyUtil.as">SpotifyUtil</a></p>
<p>Here is an example of how to use the method which will convert the link variable below to &#8220;spotify:user:user_name:playlist:3WbWswJtOPIdKBQmZs9pGr&#8221;:</p>
<pre>
var link : String = &quot;http://open.spotify.com/user/user_name/playlist/3WbWswJtOPIdKBQmZs9pGr&quot;;

var validUrl : String = SpotifyUtil.validatePlaylist( link, SpotifyUtil.URL_FORMAT_SPOTIFY );

if( validUrl )
{
	trace( link );
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.krisrange.com/2010/05/spotify-url-validation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

