<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Cast XMLNode to Boolean &#8211; AS3</title>
	<atom:link href="http://www.jeffguthrie.com/cast-xmlnode-to-boolean-as3/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jeffguthrie.com/cast-xmlnode-to-boolean-as3</link>
	<description>web developer, usability, analytics</description>
	<lastBuildDate>Wed, 25 Jan 2012 15:41:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Jeff</title>
		<link>http://www.jeffguthrie.com/cast-xmlnode-to-boolean-as3/comment-page-1#comment-317</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Sat, 05 Jun 2010 15:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffguthrie.com/?p=635#comment-317</guid>
		<description>Nice tip, thanks!</description>
		<content:encoded><![CDATA[<p>Nice tip, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://www.jeffguthrie.com/cast-xmlnode-to-boolean-as3/comment-page-1#comment-316</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Sat, 05 Jun 2010 10:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffguthrie.com/?p=635#comment-316</guid>
		<description>i came across the same problem, and also found a string comparison to true to be the best way to fix it.

The reason is, assuming, like me, you were trying to cast the string as boolean something like

var myBoolean:Boolean = Boolean(XML.isTrueFalse);

will assign true if any string is present in that xml node.</description>
		<content:encoded><![CDATA[<p>i came across the same problem, and also found a string comparison to true to be the best way to fix it.</p>
<p>The reason is, assuming, like me, you were trying to cast the string as boolean something like</p>
<p>var myBoolean:Boolean = Boolean(XML.isTrueFalse);</p>
<p>will assign true if any string is present in that xml node.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

