I have a wfs transactionresponse which I want to parse and extract
values from the tags. I have been looking at xml.html example and
Format.XML documentation but am apparently unable to understand
everything I need to.
For example;
var saveStrategy = new OpenLayers.Strategy.Save({
onCommit: function(response){
if(response.success()) {
format = new OpenLayers.Format.XML();
var doc = format.read(response.priv.responseText);
var value = getElementsByTagNameNS(doc,
'http://www.opengis.net/wfs', 'totalInserted'); // I have not
included the function
alert(value);
}
}
})
Gives me <wfs:totalInserted
xmlns:wfs="http://www.opengis.net/wfs">0</wfs:totalInserted>
At this point I do not know how to extract the totalinserted value, in
this case 0
I have tried to use getAttributeNS and getChildValue without success.
Any pointers, hints, or examples would be helpful
Ralph Dell
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users