Jukka, Our question was for the data/text read from the database and then published as XML by the WFS service.
So a pub with the name ‘Dog & bone’ created illegal xml as the & is not converted to & Regards Ian From: Rahkonen Jukka (MML) [mailto:[email protected]] Sent: Thursday, April 14, 2016 3:10 PM To: Ian Walberg <[email protected]>; MapserverList OSGEO <[email protected]> Subject: Re: WFS layer - XML/JSON safe chars Hi, You can’t have & in feature type names or attribute names in WFS because they are defined in the XML schema to be “QName”. The prefix and LocalPart are of type NCName https://en.wikipedia.org/wiki/QName and from http://stackoverflow.com/questions/1631396/what-is-an-xsncname-type-and-when-should-it-be-used The practical restrictions of NCName are that it cannot contain several symbol characters like :, @, $, %, &, /, +, ,, ;, whitespace characters or different parenthesis. Furthermore an NCName cannot begin with a number, dot or minus character although they can appear later in an NCName. -Jukka Rahkonen- Lähettäjä: mapserver-users [mailto:[email protected]] Puolesta Ian Walberg Lähetetty: 14. huhtikuuta 2016 19:23 Vastaanottaja: MapserverList OSGEO Aihe: [mapserver-users] WFS layer - XML/JSON safe chars Folks, Can mapserver produce XML or JSON safe characters for WFS served data or do we need to ensure the source data has the escaped values. We got tripped up today as there were some ‘&’ in our names which we had not considered. Thanks Ian
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
