Hi Ralph,

  TinyOWS has a nice demo showing WFS-T in OpenLayers [1].

Hope this helps,

Alexandre

[1] http://tinyows.org/tracdocs/demo/OpenLayers-2.9/examples/tinyows_wfs-t.html


On 10-09-08 02:23 PM, Ralph Dell wrote:

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


--
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to