TransWikia.com

GeoNetwork CSW Harvest Error - "gmd:MD_MetaData, csw: record" is not a valid value for QName

Geographic Information Systems Asked by Ariasohrab on April 7, 2021

I’m trying to run a CSW Harvest in GeoNetwork, but I get this error:

"gmd:MD_MetaData, csw: record"  is not a valid value for QName

I’m using GeoNetwork 2.10.3 on Windows 7 64 bit and GeoServer 2.6.2

One Answer

"gmd:MD_MetaData, csw: record" 

Well, the error message is correct the quoted text is not a valid QName, as we can see from its definition:

QName              ::=   PrefixedName | UnprefixedName
PrefixedName       ::=   Prefix ':' LocalPart
UnprefixedName     ::=   LocalPart
Prefix             ::=   NCName
LocalPart          ::=   NCName

and

NCName             ::=   Name - (Char* ':' Char*)  /* An XML Name, minus the ":" */

Reference https://en.wikipedia.org/wiki/QName

i.e.

We have a PrefixedName, the prefix is gmd, we have an :, the LocalPart is therefore MD_MetaData, csw: record which should be an NCName but it is invalid because there is a colon after the csw.

Answered by nmtoken on April 7, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP