[OpenLayers-Dev] Format.GML.Base error

Eric Lemoine eric.lemoine at camptocamp.com
Thu Aug 20 12:37:58 EDT 2009


On Thursday, August 20, 2009, Eric Lemoine <eric.lemoine at camptocamp.com> wrote:
> 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?
>

Okay, I have a small, harmless patch to Protocol.WFS.v1 for that. It
took me almost 3 hours to kinda figure out what was happening. I'll
create a ticket...

Cheers,


> --
> 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
>

-- 
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