Sample: dhtmlxGrid Loading from XML dhtmlxGrid main page
X

There is an opportunity to load from xml file, string or island


Reload from XML string
Reload from XML island
 
<div id="gridbox" width="100%" height="250px" style="background-color:white;overflow:hidden"></div>
 
<textarea id="str_xml" style="display:none;"><rows>
   <row id="1">
      <cell>1</cell>
      <cell>loaded from xml island</cell>
  </row>
  ...
</rows></textarea>
 
<xml id="isl_xml" style="display:none;"><rows>
    <row id="1">
        <cell>1</cell>
        <cell>loaded from xml string</cell>
    </row>
       ...
</rows></xml>
 
<script>
 
        mygrid = new dhtmlXGridObject('gridbox');
        ...
        /*loading from xml file*/
        mygrid.load("xml.php","xml");
        /*loading from xml string*/
        mygrid.parse(document.getElementById('str_xml').value)
        /*loading from xml island*/
        mygrid.parse(document.getElementById('isl_xml'))
</script>