Hi list,
I’ve been playing around with the new Geonetwork beta, specifically the area of its implementation of the 19139 templates.
I have created a test xml document around a dataset of ours to test the harvesting with. This test document I am able to validate using both oXygen and using my own wrappers around oNVDL.
When I try to import this test record I get an error if I have validation checked (without validation checked the record is imported successfully) the error message is:
org.jdom.input.JDOMParseException: Error on line 1: cvc-elt.1: Cannot find the declaration of element ‘gmd:MD_Metadata’.
I moved on and created a default ISO19139 document through the Geonetwork interface and compared its namespace declarations to mine, there seemed to be no reason that mine will not validate. I next tried to import the saved xml of the default document and found that the same error is produced. Is there somewhere that I have to setup a catalog for these records to validate properly?
I next tried to validate the default document using both oXygen and my own oNVDL wrappers and found that there was an error in the gco:DateTime and gmd:MD_TopicCategoryCode nodes. The DateTime was easily dismissible as the value was null in the default record but the MD_TopicCategoryCode uses “codeList” and “codeListValue” where MD_TopicCategoryCode is defined as a simpleType and declares no attibutes in the xsd.
My understanding of xml is coming along but is still not that great so please point out any floors in my logic here but I’m essentially trying to import my own record that I can validate externally but cannot validate through the batch import function, and I’m also trying to import a record that Geonetwork beta1 created and cannot import that record either.
Any information would be great,
Cheers,
Michael Gannon.
Hi Michael,
I have investigated and I have found 2 problems:
- the validation code does not work anymore.
I have changed it using the facility of Java 1.5. Now it works.
- the 19139 schema seems wrong
I tried oxygen to validate a metadata against the schema but I got
some errors inside the schema. I fixed one but then I got others:
SystemID: web/xml/schemas/iso19139/schema/gco/basicTypes.xsd
Position: 383:34
Description: src-resolve: Cannot resolve the name 'gco:Record' to a(n) 'element declaration' component.
Did you use the 19139 xsd files provided with geonetwork or do you have
another set of files? My schema files are dated 2006-05-02.
Cheers,
Andrea
Hi list,
I've been playing around with the new Geonetwork beta, specifically the area
of its implementation of the 19139 templates.
I have created a test xml document around a dataset of ours to test the
harvesting with. This test document I am able to validate using both oXygen
and using my own wrappers around oNVDL.
When I try to import this test record I get an error if I have validation
checked (without validation checked the record is imported successfully) the
error message is:
org.jdom.input.JDOMParseException: Error on line 1: cvc-elt.1: Cannot find
the declaration of element 'gmd:MD_Metadata'.
I moved on and created a default ISO19139 document through the Geonetwork
interface and compared its namespace declarations to mine, there seemed to be
no reason that mine will not validate. I next tried to import the saved xml
of the default document and found that the same error is produced. Is there
somewhere that I have to setup a catalog for these records to validate
properly?
I next tried to validate the default document using both oXygen and my own
oNVDL wrappers and found that there was an error in the gco:DateTime and
gmd:MD_TopicCategoryCode nodes. The DateTime was easily dismissible as the
value was null in the default record but the MD_TopicCategoryCode uses
"codeList" and "codeListValue" where MD_TopicCategoryCode is defined as a
simpleType and declares no attibutes in the xsd.
My understanding of xml is coming along but is still not that great so please
point out any floors in my logic here but I'm essentially trying to import my
own record that I can validate externally but cannot validate through the
batch import function, and I'm also trying to import a record that Geonetwork
beta1 created and cannot import that record either.
Any information would be great,
Cheers,
Michael Gannon.