XPATH XML
I have such XML:
<DATA>
<RealTime Src="REUTERS" Item="MSFT">
<Field Id="1" Name="ASK" Val="44.5" />
<Field Id="2" Name="BID" Val="45" />
<Field Id="3" Name="LAST" Val="45" />
I fetch the data this way:
var grid_model=new AW.XML.Table;
grid_model.setURL("http://localhost/grids/f.xml");
grid_model.setColumns(["@Src","@Item","RealTime//Field[@Name]"]);
grid_model.setRows('//DATA/*');
grid_model.request();
Unfortunalety the grid only displays the Src and Item and not all the other fields. Any idea why ?
Thanks
<DATA>
<RealTime Src="REUTERS" Item="MSFT">
<Field Id="1" Name="ASK" Val="44.5" />
<Field Id="2" Name="BID" Val="45" />
<Field Id="3" Name="LAST" Val="45" />
I fetch the data this way:
var grid_model=new AW.XML.Table;
grid_model.setURL("http://localhost/grids/f.xml");
grid_model.setColumns(["@Src","@Item","RealTime//Field[@Name]"]);
grid_model.setRows('//DATA/*');
grid_model.request();
Unfortunalety the grid only displays the Src and Item and not all the other fields. Any idea why ?
Thanks
Julien
November 29,