I havethis code:
<code>
isc.DataSource.create({
ID:"countryDS",
dataFormat:"xml",
dataURL:"http://localhost/beltrailway/accidents/forms/accidents.asp?methodexecute=mtest&datarequest=xml",
recordXPath:"//country",
fields:[
{name:"countryCode", title:"Code"},
{name:"countryName", title:"Country"},
{name:"independence", title:"Nationhood", type:"date"},
{name:"population", title:"Population", type:"integer"},
{name:"gdp", title:"GDP", type:"float"}
]
});
</code>
it does not look like it pulls data. If run data call in the browser I am getting XML data back. Can you help, please?
<code>
isc.DataSource.create({
ID:"countryDS",
dataFormat:"xml",
dataURL:"http://localhost/beltrailway/accidents/forms/accidents.asp?methodexecute=mtest&datarequest=xml",
recordXPath:"//country",
fields:[
{name:"countryCode", title:"Code"},
{name:"countryName", title:"Country"},
{name:"independence", title:"Nationhood", type:"date"},
{name:"population", title:"Population", type:"integer"},
{name:"gdp", title:"GDP", type:"float"}
]
});
</code>
it does not look like it pulls data. If run data call in the browser I am getting XML data back. Can you help, please?
Comment