Reading XML data from string

I need to read the xml data from a string and put it intot the grid.
How can this be done?Please elaborate
May 21,
You can use setXML() method of AW.XML.Table class, which accepts either a reference to the XMLDocument object (IE XML Data Island) or XML string -


Here is the full example -
    <title>ActiveWidgets Examples</title>
    <style>body {font: 12px Tahoma}</style>
    <script src="../../runtime/lib/aw.js"></script>
    <link href="../../runtime/styles/xp/aw.css" rel="stylesheet"></link>

    var ServerXML="<companies><company><ticker>MSFT1</ticker><name>Microsoft Corporation</name></company></companies>";

    var table = new AW.XML.Table;

    var obj = new AW.UI.Grid;

    obj.setRowCount(1); // or obj.setRowCount(table.getCount());



There are more examples like this in the /examples/grid data - xml data islands/ directory.

Alex (ActiveWidgets)
May 21,

This topic is archived.

See also:

Back to support forum