| Sample: dhtmlxGrid | Loading from XML | dhtmlxGrid main page |

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

Reload from XML string
Reload from XML island
<rows> <row id="1"> <cell>0</cell> <cell>loaded from xml string</cell> </row> <row id="2"> <cell>1</cell> <cell>loaded from xml string</cell> </row> <row id="3" selected="1"> <cell>2</cell> <cell>loaded from xml string</cell> </row> <row id="4"> <cell>3</cell> <cell>loaded from xml string</cell> </row> <row id="5"> <cell>4</cell> <cell>loaded from xml string</cell> </row> <row id="6"> <cell>5</cell> <cell>loaded from xml string</cell> </row> <row id="7"> <cell>6</cell> <cell>loaded from xml string</cell> </row> <row id="8"> <cell>7</cell> <cell>loaded from xml string</cell> </row> <row id="9"> <cell>8</cell> <cell>loaded from xml string</cell> </row> <row id="10"> <cell>9</cell> <cell>loaded from xml string</cell> </row> <row id="11"> <cell>10</cell> <cell>loaded from xml string</cell> </row> </rows> 0 loaded from xml island 1 loaded from xml island 2 loaded from xml island 3 loaded from xml island 4 loaded from xml island 5 loaded from xml island 6 loaded from xml island 7 loaded from xml island 8 loaded from xml island 9 loaded from xml island 10 loaded 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>