<?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>undefined-type &#187; production</title>
	<atom:link href="http://undefined-type.com/tag/production/feed/" rel="self" type="application/rss+xml" />
	<link>http://undefined-type.com</link>
	<description>Flex,Flash &#38; AIR</description>
	<lastBuildDate>Wed, 18 Nov 2009 09:48:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>XML in Production (lazy)</title>
		<link>http://undefined-type.com/2009/03/xml-in-production-lazy/</link>
		<comments>http://undefined-type.com/2009/03/xml-in-production-lazy/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 22:46:41 +0000</pubDate>
		<dc:creator>Bäcker</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[combine translation]]></category>
		<category><![CDATA[lazy]]></category>
		<category><![CDATA[production]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://undefined-type.com/?p=507</guid>
		<description><![CDATA[I&#8217;m working a lot with international sites and there can often be times where the deadlines are short, customers aren&#8217;t so fast as I wish they where with feedback e.g.
This often messes up translations with XML files. They needs to be resend for changes and as the sites takes interaction you can find that things [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working a lot with international sites and there can often be times where the deadlines are short, customers aren&#8217;t so fast as I wish they where with feedback e.g.</p>
<p>This often messes up translations with XML files. They needs to be resend for changes and as the sites takes interaction you can find that things are missing.</p>
<p>Here is a small tip if you are running out of time, make sure your XML structure is simple, as well make sure that you are using unique id attributes. Then you can just combine the XML files and you don&#8217;t really need to go thru hours of copy/paste work.</p>
<p>A small example.<br />
<strong>XML 1</strong><br />
&lt;xml&gt;<br />
&lt;gui&gt;<br />
&lt;item id=&#8221;replay&#8221;&gt;REPLAY&lt;/item&gt;<br />
&lt;item id=&#8221;start&#8221;&gt;START THE GAME&lt;/item&gt;<br />
&lt;/gui&gt;<br />
&lt;/xml&gt;</p>
<p><strong>XML 2</strong><br />
&lt;xml&gt;<br />
&lt;gui&gt;<br />
&lt;item id=&#8221;volumeOff&#8221;&gt;TURN ON VOLUME&lt;/item&gt;<br />
&lt;item id=&#8221;volumeOn&#8221;&gt;TURN OFF VOLUME&lt;/item&gt;<br />
&lt;/gui&gt;<br />
&lt;/xml&gt;</p>
<p>So what I do is just to add on and on and combine the XML;s.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">copy</span>:<span style="color: #0066CC;">XML</span> = levelLoader.<span style="color: #006600;">getXML</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;data/en.xml&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> copy1:<span style="color: #0066CC;">XML</span> = levelLoader.<span style="color: #006600;">getXML</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;data/en01.xml&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> copy2:<span style="color: #0066CC;">XML</span> = levelLoader.<span style="color: #006600;">getXML</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;data/en02.xml&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">copy</span> = <span style="color: #0066CC;">copy</span>.<span style="color: #0066CC;">appendChild</span><span style="color: #66cc66;">&#40;</span>copy1.<span style="color: #66cc66;">*</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">copy</span> = <span style="color: #0066CC;">copy</span>.<span style="color: #0066CC;">appendChild</span><span style="color: #66cc66;">&#40;</span>copy2.<span style="color: #66cc66;">*</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> volumeOff : <span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">copy</span>.<span style="color: #006600;">gui</span>.<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">@</span>id==<span style="color: #ff0000;">&quot;volumeOff&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://undefined-type.com/2009/03/xml-in-production-lazy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

