I'm a newbie user of GeoNetwork and doing my firsts steps. I created an
xml-file using CatMDEdit applying ISO19115 and tried to insert it using
style-sheet ISO19115-to-ISO19139. The operation results in the error message
"IllegalStateException : Root element not set". I browsed through this
mailing list and got aware that many users faced similar problems with the
'Metadata Insert'. I followed several of the suggestions in the different
postings (e.g. editing the xmlns-addresses) but none had any effect. What's
the most puzzling to me as a newcomer in this field: CatMDEdit had validated
the xml-file positively according to the ISO19115 standard! Why can an xml
satisfying a given standard not be read in by another programme even when
this standard is specified? I add the head and the tail of the xml-file;
perhaps an experienced colleague can see what's wrong at first glance.....?
<?xml version="1.0" encoding="UTF-8"?>
<gmd:MD_Metadata xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:gts="http://www.isotc211.org/2005/gts/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<gmd:fileIdentifier>
<gco:CharacterString>contour</gco:CharacterString>
</gmd:fileIdentifier>
[...]
<gmd:schemaAscii>
<gco:CharacterString><?xml version = '1.0' encoding =
'ISO-8859-1'?> <eainfo> <detailed> <enttyp&$
</gmd:schemaAscii>
</gmd:MD_ApplicationSchemaInformation>
</gmd:applicationSchemaInfo>
</gmd:MD_Metadata>
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-with-Metadata-Insert-for-xml-file-generated-with-CatMDEdit-tp5175803.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.