<?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>Stuck in a for loop&#187; Xml</title>
	<atom:link href="http://blog.kazumakzak.com/tag/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kazumakzak.com</link>
	<description>blog.kazumakzak.com</description>
	<lastBuildDate>Thu, 04 Mar 2010 10:52:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Xml line break issue in Flash</title>
		<link>http://blog.kazumakzak.com/2009/05/19/xml-line-break-issue-in-flash/</link>
		<comments>http://blog.kazumakzak.com/2009/05/19/xml-line-break-issue-in-flash/#comments</comments>
		<pubDate>Tue, 19 May 2009 21:08:32 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Xml]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=309</guid>
		<description><![CDATA[I got some xml text line break issues in my latest project. The texts look good viewing them locally, but when uploading the project to the customer server I get a lot of extra line breaks. I am not really sure why this problem occurs but I guess it has to do with the server platform. I [...]]]></description>
			<content:encoded><![CDATA[<p>I got some xml text line break issues in my latest project. The texts look good viewing them locally, but when uploading the project to the customer server I get a lot of extra line breaks. I am not really sure why this problem occurs but I guess it has to do with the server platform. I tried to save the xml with a different encoding but with no luck so I wrote this simple method. It works. </p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> fixLineBreakIssues<span style="color: #66cc66;">&#40;</span>value : <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">String</span>
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #b1b100;">return</span> value.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">join</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">// usage</span>
txtField.<span style="color: #0066CC;">htmlText</span> = fixLineBreakIssues<span style="color: #66cc66;">&#40;</span>xmlText<span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p align="left"><a class="tt" href="http://twitter.com/home/?status=Xml+line+break+issue+in+Flash+http://zx4ck.th8.us" title="Post to Twitter"><img class="nothumb" src="http://blog.kazumakzak.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kazumakzak.com/2009/05/19/xml-line-break-issue-in-flash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->