Hello list,
I have a problem with harvesting a csw catalogue and I think it's a
problem with the xml-parser in the csw harvest engine. When i try to
harvest a csw node I get an error message in the logfile:
2011-10-19 11:02:55,616 WARN [geonetwork.harvester] - Error parsing
metadata: org.jdom.JDOMException: XPath error while evaluating
"gmd:fileIdentifier/gco:CharacterString": XPath expression uses unbound
namespace prefix gco: XPath expression uses unbound namespace prefix gco
In the metadatasets the namespace for gco
(xmlns:gco="http://www.isotc211.org/2005/gco) is declared in
<gmd:fileIdentifier> and not in <gmd:MD_Metadata>, but I think it's a
valid xml.
When I try to harvest this metadataset with local filesystem harvesting
I get this metadataset in my catalogue. So I put the namespace
(xmlns:gco="http://www.isotc211.org/2005/gco) from <gmd:fileIdentifier>
to <gmd:MD_Metadata> and harvest the new xml over another catalogue via
csw. This works.
test_nicht_valide.xml: no harvesting over csw possible, over local
filesystem harvesting it works
test_nicht_valide_korrigiert_1.xml: it's possible to harvest this
metadataset over csw
Thanks for help
Regards
Martin
--
********************************************
Where2B Konferenz 2011
01. Dezember 2011 in Bonn
www.where2b-conference.com
********************************************
WhereGroup GmbH & Co. KG
Eifelstraße 7
53119 Bonn
Germany
Fon: +49 (0)228 / 90 90 38 - 24
Fax: +49 (0)228 / 90 90 38 - 11
martin.hueben@anonymised.com
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
--------------------------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
--------------------------------------------------
(attachments)
test_nicht_valide.xml (21.9 KB)
test_nicht_valide_korrigiert_1.xml (19.6 KB)