[GeoNetwork-users] XSD Validation Errors

I have created my XML using the iso19139 schema.xsd

The errors below are popping up when I try to import my metadata record into
GeoNetwork, if anyone has any ideas it would be very much appreciate.
    
METADATA IS NOT VALID.

XSD Validation error(s)

cvc-complex-type.2.4.a: Invalid content was found starting with element
'gmd:dateStamp'. One of '{"http://www.isotc211.org/2005/gmd":hierarchyLevel,
"http://www.isotc211.org/2005/gmd":hierarchyLevelName,
"http://www.isotc211.org/2005/gmd":contact\}' is expected. (Element:
gmd:dateStamp with parent element: gmd:MD_Metadata)

cvc-complex-type.2.4.a: Invalid content was found starting with element
'gmd:identifier'. One of
'{"http://www.isotc211.org/2005/gmd":alternateTitle,
"http://www.isotc211.org/2005/gmd":date\}' is expected. (Element:
gmd:identifier with parent element: gmd:CI_Citation)

cvc-enumeration-valid: Value '' is not facet-valid with respect to
enumeration '[farming, biota, boundaries, climatologyMeteorologyAtmosphere,
economy, elevation, environment, geoscientificInformation, health,
imageryBaseMapsEarthCover, intelligenceMilitary, inlandWaters, location,
oceans, planningCadastre, society, structure, transportation,
utilitiesCommunication]'. It must be a value from the enumeration. (Element:
gmd:MD_TopicCategoryCode with parent element: gmd:topicCategory)

cvc-type.3.1.3: The value '' of element 'gmd:MD_TopicCategoryCode' is not
valid. (Element: gmd:MD_TopicCategoryCode with parent element:
gmd:topicCategory)

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/XSD-Validation-Errors-tp5035852.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

hi Michael,

how exactly have you created your XML "using the iso19139 xsd" ?

Apparently, the way it was created did not create an XML that's completely
conform the XSD.

Can you post the XML here ?

Kind regards
Heikki Doeleman

On Thu, Feb 21, 2013 at 3:21 PM, Centric <michael.graves@anonymised.com>wrote:

I have created my XML using the iso19139 schema.xsd

The errors below are popping up when I try to import my metadata record
into
GeoNetwork, if anyone has any ideas it would be very much appreciate.

METADATA IS NOT VALID.

XSD Validation error(s)

cvc-complex-type.2.4.a: Invalid content was found starting with element
'gmd:dateStamp'. One of '{"http://www.isotc211.org/2005/gmd
":hierarchyLevel,
"http://www.isotc211.org/2005/gmd&quot;:hierarchyLevelName,
"http://www.isotc211.org/2005/gmd&quot;:contact\}' is expected. (Element:
gmd:dateStamp with parent element: gmd:MD_Metadata)

cvc-complex-type.2.4.a: Invalid content was found starting with element
'gmd:identifier'. One of
'{"http://www.isotc211.org/2005/gmd&quot;:alternateTitle,
"http://www.isotc211.org/2005/gmd&quot;:date\}' is expected. (Element:
gmd:identifier with parent element: gmd:CI_Citation)

cvc-enumeration-valid: Value '' is not facet-valid with respect to
enumeration '[farming, biota, boundaries, climatologyMeteorologyAtmosphere,
economy, elevation, environment, geoscientificInformation, health,
imageryBaseMapsEarthCover, intelligenceMilitary, inlandWaters, location,
oceans, planningCadastre, society, structure, transportation,
utilitiesCommunication]'. It must be a value from the enumeration.
(Element:
gmd:MD_TopicCategoryCode with parent element: gmd:topicCategory)

cvc-type.3.1.3: The value '' of element 'gmd:MD_TopicCategoryCode' is not
valid. (Element: gmd:MD_TopicCategoryCode with parent element:
gmd:topicCategory)

--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/XSD-Validation-Errors-tp5035852.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
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

Hi Heikki,

My problem has changed slightly and I am getting different errors. If you
could look over my methodology below and offer assistance I would be very
grateful. I have included my XML.

Dataset_v2.2.xml
<http://osgeo-org.1560.n6.nabble.com/file/n5039895/Dataset_v2.2.xml&gt;

My process is:
1) Load UKLP Dataset Metadata Template (using the Metadata insert > type:
Template)
2) Open up the UKLP Metadata Template using the Edit option > using the
'Check' button to make sure no errors are present in the Validation report
(manually entering the values required) > Change Type to Metadata and save.
3) Export the XML by copying and pasting it from the XML View.
4) Go to Administration and Metadata Creation > Metadata Insert > browse and
choose the XML file I have just exported > my settings are outline below:
Type: Metadata
Import Actions : No action on import
Stylesheet: GEMINI_1-to_GEMINI_21
Validate: yes
Group: sample group
Category: Datasets

The error I receive is:

Metadata is not valid.

SAXParseException : src-import.3.1: The namespace attribute,
'http://www.opengis.net/gml’, of an <import> element information item must
be identical to the targetNamespace attribute,
'http://www.opengis.net/gml/3.2’, of the imported document.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/XSD-Validation-Errors-tp5035852p5039895.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.