0

I try to export a GML file from HALE editor but the validation has always errors with this text:

 The value '' of attribute 'gml:id' on element 'ps:ProtectedSite' is not valid with respect to its type, 'ID'., on line_, column_

  '' is not valid value for 'NCName' on line_, column_

Anybody can help me how to fix this errors?

bumped to the homepage by Community 17 hours ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

  • what did you set the ID to be? and the NCName? – Ian Turton Aug 9 '16 at 14:49
  • id was mapping to ID and i didn't find NCName – mrbandy Aug 10 '16 at 7:24
0

The error is telling you that the value of your gml:id attribute on your ps:ProtectedSite element is not valid (is not correct according to the schema).

So you probably have something that looks like:

<ps:ProtectedSite gml:id="">

It's telling you that the value of your gml:id is of type ID, and attributes of type ID must conform to a pattern defined by NCName.

The type xsd:NCName represents an XML non-colonized name, which is simply a name that does not contain colons. An xsd:NCName value must start with either a letter or underscore () and may contain only letters, digits, underscores (), hyphens (-), and periods (.)

Reference: http://www.datypic.com/sc/xsd/t-xsd_NCName.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.