[OpenLayers-Dev] Format.GML.Base error

Eric Lemoine eric.lemoine at camptocamp.com
Thu Aug 20 10:41:56 EDT 2009


Hello

The GML parser gives js errors on some WFS 1.0 GetFeature requests our
application does. This occurs in FireFox3.

The error is: obj.attributes is null - Line 392 Format/GML/Base.js.
This error occurs because the feature["_attribute"] function is
entered before feature["_typeName"]. By watching the variable
"node.localName" in the feature["*"] function I figured out that we do
not enter feature["_typeName"] because node.localName is "parsererror"
(instead of the name of the feature type). Obviously the actual GML
response does not include any "parsererror" tags, and I think it is
FireFox that sets this in the localName property. I have no idea why
FireFox fails to parse the GML response as it looks perfectly fine to
me, nor does I know why it sets "parsererror" as the node's localName.

Has anyone experienced this?

Thanks,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Dev mailing list