3.2.0

Working with AW.XML.table

Hei.

Hope I can get som help, to manipulate this loaded XML informasjon, because it has informasjon about serveral components on the web.

This is my loader:

var time=new Date().getTime();
url=url+"&time="+time;
var table = new AW.XML.Table;
table.setURL(url);
table.setAsync(false);
table.readXML = function(col, row){
};
table.request();

And I can't manage to splitt xml:

The eksampel under merge all info, but it could be a nice way to work.

var xml = table.getXML();
var nodes = xml.selectNodes("//informasjon//components");

Is it possible to get some help, to slice and dice xml info?????

Heres the XML result:

XML="
<informasjon>
<header>
//informasjon to the web header
</header>
<left>
//informasjon to the web left
</left>
<right>
//informasjon to the web right
</right>
<main>
//informasjon to the web main
</main>
<components>
<component name="gridMain">
<property1 type="layout">aqua</property>
<property2 type="tab" name="mainTab">1</property>
<property3 type="component" name="gridSvinn">grid</property>
<property4 type="property" name="left">200</property>
<property5 type="property" name="right">200</property>
<property6 type="property" name="top">200</property>
<property7 type="property" name="width">200</property>
<property8 type="property" name="width">200</property>
</component>
<component name="buttonNext">
<property1 type="layout">aqua</property>
<property2 type="tab" name="mainTab">1</property>
<property3 type="component" name="btnSvinn">button</property>
<property4 type="property" name="text">Neste</property>
<property5 type="property" name="left">200</property>
<property6 type="property" name="right">200</property>
<property7 type="property" name="top">200</property>
<property8 type="property" name="width">200</property>
<property9 type="property" name="width">200</property>
</component>
</components>
</informasjon>"

Thanks..........
Oddbjørn
July 24,
You can set XPath statements as the column values.

Search for XPath in the forum for more detailed instructions.
Karl Thoroddsen
July 25,

This topic is archived.

See also:


Back to support forum