[mapserver-users] [TinyOWS] Inserting feature and XML schema validation

Тимур Галиаскарович Суфиев t.sufiev at acti.ru
Mon Nov 19 04:35:59 PST 2012


Hello, Olivier!

XML validation is such issue-rich subject, so I have another question considering it :).

Recent TinyOWS commits (from 1st Nov till 13th, I don't know which one exactly is responsible) introduced some changes to feature ids naming, now I have the following error on features update/delete from OpenLayers:

[Mon Nov 19 16:03:30 2012] [ERROR] Element '{http://www.opengis.net/ogc}FeatureId', attribute 'fid': 'http://www.tinyows.org/:cities.719' is not a valid value of the atomic type 'xs:ID'.

Is '<ns-uri>:<layer-name>.<entity-integer-id>' a new feature-id by design or something went wrong?

Best regards,
Timur Sufiev
  _____  

From: Olivier Courtin [mailto:olivier.courtin at gmail.com]
To: mapserver-users at lists.osgeo.org
Sent: Fri, 16 Nov 2012 14:35:59 +0300
Subject: Re: [mapserver-users] [TinyOWS] Inserting feature and XML schema validation

On Fri, Nov 16, 2012 at 12:32 PM, Тимур Галиаскарович Суфиев <t.sufiev at acti.ru> wrote:

      
  I found the problem (just in case it may be useful for someone): wfs layers in Javascript were using 

featureNS: "http://www.tinyows.org"

while all layers in tinyows.xml used 
  
ns_uri="http://www.tinyows.org/"

Every symbol matters in deciding whether xml namespaces are the same, so adding trailing slash to Javascript solved my issue.
  


Thanks Timur to post, for the record, your own answer !


And yes as it's an URI (and not a URL) every symbol matters...



  
Cheers,
 -- 
Olivier
    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121119/94beb958/attachment.htm>


More information about the MapServer-users mailing list