[GeoNetwork-users] GeoNetwork XSD validation errors

183a6cad-a112-46f9-a833-1e6ae4ee9d5d.xml
<http://osgeo-org.1560.x6.nabble.com/file/n5048339/183a6cad-a112-46f9-a833-1e6ae4ee9d5d.xml&gt;

I am having problems loading metadata into GeoNetwork, when entering a
metadata record I am receiving the following error:

Metadata is not valid.

XSD Validation error(s): <xsderrors> <error>
<typeOfError>ERROR</typeOfError> <errorNumber>1</errorNumber>
<message>cvc-elt.1: Cannot find the declaration of element
'gmd:MD_Metadata'. (Element: gmd:MD_Metadata with parent element:
Unknown)</message> <xpath>.</xpath> </error> </xsderrors>

cvc-elt.1: Cannot find the declaration of element 'gmd:MD_Metadata'.
(Element: gmd:MD_Metadata with parent element: Unknown)

I have not change the settings of the iso19139 schema and looking at my
metadata record you can see that it contains the element 'gmd:MD_Metadata'.

And ideas would be great!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-XSD-validation-errors-tp5048339.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Try adding "http://www.isotc211.org/2005/gmd&quot; to xsi:schemaLocation

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-XSD-validation-errors-tp5048339p5048370.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Thanks for the suggestion, unfortunately it resulted in the following error.
I have not changed the xsd of my GN.

  Metadata is not valid.

XSD Validation error(s): <xsderrors> <error>
<typeOfError>WARNING</typeOfError> <errorNumber>1</errorNumber>
<message>SchemaLocation: schemaLocation value =
'http://www.isotc211.org/2005/gmx
http://eden.ign.fr/xsd/isotc211/isofull/20090316/gmx/gmx.xsd
http://www.isotc211.org/2005/gmd’ must have even number of URI's. (Element:
gmd:MD_Metadata with parent element: Unknown)</message> <xpath>.</xpath>
</error> <error> <typeOfError>ERROR</typeOfError>
<errorNumber>2</errorNumber> <message>cvc-elt.1: Cannot find the declaration
of element 'gmd:MD_Metadata'. (Element: gmd:MD_Metadata with parent element:
Unknown)</message> <xpath>.</xpath> </error> </xsderrors>

SchemaLocation: schemaLocation value = 'http://www.isotc211.org/2005/gmx
http://eden.ign.fr/xsd/isotc211/isofull/20090316/gmx/gmx.xsd
http://www.isotc211.org/2005/gmd’ must have even number of URI's. (Element:
gmd:MD_Metadata with parent element: Unknown)

cvc-elt.1: Cannot find the declaration of element 'gmd:MD_Metadata'.
(Element: gmd:MD_Metadata with parent element: Unknown)

I can still import my metadata into GN by unticking the Validation box, but
this is not ideal.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-XSD-validation-errors-tp5048339p5048734.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Try again putting "http://www.isotc211.org/2005/gmd&quot; at the beginning of the
schemaLocation list.

If this does not work tell me what version of geonetwork are you using.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-XSD-validation-errors-tp5048339p5049088.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Michael,

Not sure if you've found a solution but the schemaLocation hint you have in your metadata record doesn't look complete.The validation message in your original email was telling you that it couldn't find the definition of the gmd:MD_Metadata and that was because your schemaLocation didn't have a URL for the namespace GMD — Resource site for ISO/TC 211 Geographic information/Geomatics. Although the schemaLocation hint is optional, if you do provide one it must be correct. Try the following:

xsi:schemaLocation="http://www.isotc211.org/2005/gmd/gmd.xsd http://www.isotc211.org/2005/gmx/gmx.xsd&quot;

Cheers,
Simon
________________________________________
From: Centric [michael.graves@anonymised.com]
Sent: Monday, 22 April 2013 9:15 PM
To: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] GeoNetwork XSD validation errors

Thanks for the suggestion, unfortunately it resulted in the following error.
I have not changed the xsd of my GN.

  Metadata is not valid.

XSD Validation error(s): <xsderrors> <error>
<typeOfError>WARNING</typeOfError> <errorNumber>1</errorNumber>
<message>SchemaLocation: schemaLocation value =
'GMX — Resource site for ISO/TC 211 Geographic information/Geomatics
eden | Équipe D'Experts en Normalisation
GMD — Resource site for ISO/TC 211 Geographic information/Geomatics’ must have even number of URI's. (Element:
gmd:MD_Metadata with parent element: Unknown)</message> <xpath>.</xpath>
</error> <error> <typeOfError>ERROR</typeOfError>
<errorNumber>2</errorNumber> <message>cvc-elt.1: Cannot find the declaration
of element 'gmd:MD_Metadata'. (Element: gmd:MD_Metadata with parent element:
Unknown)</message> <xpath>.</xpath> </error> </xsderrors>

SchemaLocation: schemaLocation value = 'GMX — Resource site for ISO/TC 211 Geographic information/Geomatics
eden | Équipe D'Experts en Normalisation
GMD — Resource site for ISO/TC 211 Geographic information/Geomatics’ must have even number of URI's. (Element:
gmd:MD_Metadata with parent element: Unknown)

cvc-elt.1: Cannot find the declaration of element 'gmd:MD_Metadata'.
(Element: gmd:MD_Metadata with parent element: Unknown)

I can still import my metadata into GN by unticking the Validation box, but
this is not ideal.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-XSD-validation-errors-tp5048339p5048734.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

hi,

the schemalocation values are pairs; try using

xsi:schemaLocation="http://www.isotc211.org/2005/gmd
http://www.isotc211.org/2005/gmd/gmd.xsd&quot;

GeoNetwork uses the key value to lookup its own local copy of the ISO19139
XSD.

Kind regards
Heikki Doeleman

On Tue, Apr 23, 2013 at 1:40 PM, ianwallen <ianwallen@anonymised.com> wrote:

Try again putting "http://www.isotc211.org/2005/gmd&quot; at the beginning of
the
schemaLocation list.

If this does not work tell me what version of geonetwork are you using.

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GeoNetwork-XSD-validation-errors-tp5048339p5049088.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

having done that with your metadata, it turns out you should change

<gmd:extent>
<gml:TimePeriod gml:id="T1">
<gml:beginPosition>2010-04-13</gml:beginPosition>
<gml:endPosition/>
</gml:TimePeriod>
</gmd:extent>

to

<gmd:extent>
<gml:TimePeriod gml:id="T1" xmlns:gml="http://www.opengis.net/gml&quot;&gt;
<gml:beginPosition>2010-04-13</gml:beginPosition>
<gml:endPosition/>
</gml:TimePeriod>
</gmd:extent>

to make the metadata valid. The reason is that you have a different
declaration of the gml namespace in your root element (gmd:MD_Metadata):

xmlns:gml="http://www.opengis.net/gml/3.2&quot;

Alternatively, and better, I guess, is to change in your root
gmd:MD_Metadata declaration the gml definition to

xmlns:gml="http://www.opengis.net/gml&quot;

If you do this there is no need to add the correct gml namespace definition
locally to that gml:TimePeriod element, and you can add other gml elements
without needing to do this for each one.

Hope this helps,
kind regards
Heikki Doeleman

On Wed, Apr 24, 2013 at 1:02 PM, heikki <tropicano@anonymised.com> wrote:

hi,

the schemalocation values are pairs; try using

xsi:schemaLocation="http://www.isotc211.org/2005/gmd
http://www.isotc211.org/2005/gmd/gmd.xsd&quot;

GeoNetwork uses the key value to lookup its own local copy of the ISO19139
XSD.

Kind regards
Heikki Doeleman

On Tue, Apr 23, 2013 at 1:40 PM, ianwallen <ianwallen@anonymised.com> wrote:

Try again putting "http://www.isotc211.org/2005/gmd&quot; at the beginning of
the
schemaLocation list.

If this does not work tell me what version of geonetwork are you using.

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GeoNetwork-XSD-validation-errors-tp5048339p5049088.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring
service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt!
http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork