title: Need to write XML using PHP - how?
body: <p>I've got this basic code.</p>
  
  <pre><code>&lt;chart lowerLimit='0' upperLimit='100' caption='Revenue' subcaption='US $ (1,000s)' numberPrefix='$' numberSuffix='K' showValue='1' &gt;
     &lt;colorRange&gt;
        &lt;color minValue='0' maxValue='50' color='A6A6A6'/&gt;
        &lt;color minValue='50' maxValue='75' color='CCCCCC'/&gt; 
        &lt;color minValue='75' maxValue='100' color='E1E1E1'/&gt; 
     &lt;/colorRange&gt; 
     &lt;value&gt;78.9&lt;/value&gt;
     &lt;target&gt;80&lt;/target&gt;
  &lt;/chart&gt;
  </code></pre>
  
  <p>it's used from fusionwidgets and there's no documentation on how to write this in PHP.</p>
  
  <p>can anybody advise?</p>