xml stream to grid

How to pass xml stream object to the grid .?

we want the code how to write xml stream and pass it to grid?

The grid can load external XML stream from any source ( static XML file or output generated by any kind of server side script ) by
    grid.load(URI)

where URI - URL of XML resource

The server side script just need to generate XML of text and output it in standard way ( content type of response must be set to text/xml )