jquery xml multilingual idea
<p>To achieve a multilingual website I have the idea of using xml and jquery. One xml file for every language which acts as holder for all website labels.  I have created a test xml file with the name 'nl.xml' :</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;resource&gt;
&lt;language name="nl"&gt;
&lt;label id="yes"&gt;ja&lt;/label&gt;
&lt;label id="no"&gt;nee&lt;/label&gt;
&lt;/language&gt;
&lt;/resource&gt;
</code></pre>

<p>I have created a html file with the following javascript :</p>

<pre><code>    &lt;html&gt;
   &lt;head&gt;
   &lt;title&gt;&lt;/title&gt;
   &lt;script src="jquery-1.4.4.min.js"&gt;&lt;/script&gt; 
   &lt;script type="text/javascript" language="javascript"&gt;
   $(function() {     
   var language = 'nl';     
   $.ajax({         
   url: 'nl.xml',         
   success: function(xml) {             
   $(xml).find('label').each(function(){
   var id = $(this).attr('id');
   var text = $(this).find(label).text();
   $("." + id).html(text);            
     });        
      }    
     }); 
     }); 
     &lt;/script&gt; 
    &lt;/head&gt;
</code></pre>

<p>and would like to see the values:</p>

<pre><code>'div class="no"&gt;no&lt;/div&gt;'
'div class="yes"&gt;yes&lt;/div&gt;'
</code></pre>

<p>for each div which are also spread over two different files changed but need
some advice to get this done better because this current code doesnt work. The idea is that visitor downloads xml file which holds all labels for the website and webpages. </p>
