How to load values for datagrid apart from xml and php

Data can be loaded only in two formats:
    xml:
        mygrid.loadXML(…)
    csv:
        mygrid.loadCSV(“grid.csv”).

But XML stream can be generated by any server side script - asp, php, etc. ).  For example:
    grid.loadXML(“grid.asp”)

Also, you can generate grid by direct js commands ( addRow(… ) but it pretty slow way to load data