[GeoNetwork-users] Root element not set

I transformed some fgdc metadata into ISO using saxon and this xslt:
http://www.ncddc.noaa.gov/technology/metadataandxml/files/csdgm2iso19115-220110228.xslt
After all metadata was transformed I tried to import it into Geonetwork and
I get the error:"Root element not set"

The top of my xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>

Does this look right?

Thanks.

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Root-element-not-set-tp6247338p6247338.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi,

The <?xml version="1.0" encoding="UTF-8"?> is not the root element. It is the XML declaration. The root element is the content after the next "<". You need to send us what that content looks like including its attributes. IE. Everything between the "<" and the ">".

Thanks.

John

-----Original Message-----
From: hbarrett [mailto:hbarrett@anonymised.com]
Sent: Thursday, 7 April 2011 5:37 AM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] Root element not set

I transformed some fgdc metadata into ISO using saxon and this xslt:
http://www.ncddc.noaa.gov/technology/metadataandxml/files/csdg
m2iso19115-220110228.xslt
After all metadata was transformed I tried to import it into
Geonetwork and
I get the error:"Root element not set"

The top of my xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>

Does this look right?

Thanks.

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Root-element-not-set-tp

6247338p6247338.html

Sent from the GeoNetwork users mailing list archive at Nabble.com.

--------------------------------------------------------------
----------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
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

Strange. If you look at my post at http://osgeo-org.1803224.n2.nabble.com/Root-element-not-set-td6247338.html you can see I did post it.
Somehow it got striped.
I am going to try to send it to the listserv via this e-mail. If it does not appear below, can you please look at the url above? Thanks!

<gmi:MI_Metadata xmlns:gss="http://www.isotc211.org/2005/gss&quot;
                  xmlns:gts="http://www.isotc211.org/2005/gts&quot;
                  xmlns:gml="http://www.opengis.net/gml/3.2&quot;
                  xmlns:xlink="http://www.w3.org/1999/xlink&quot;
                  xmlns:gco="http://www.isotc211.org/2005/gco&quot;
                  xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
                  xmlns:gmi="http://www.isotc211.org/2005/gmi&quot;
                  xmlns:gmx="http://www.isotc211.org/2005/gmx&quot;
                  xmlns:gsr="http://www.isotc211.org/2005/gsr&quot;
                  xmlns="http://www.isotc211.org/2005/gmi&quot;
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
                  xsi:schemaLocation="http://www.isotc211.org/2005/gmi Q:/users/mize.jacqueline/ISO/gmi/gmi.xsd">
<gmd:fileIdentifier>

On Thu, 7 Apr 2011 14:02:17 +1000
  <john.hockaday@anonymised.com> wrote:

Hi,

The <?xml version="1.0" encoding="UTF-8"?> is not the root element. It is the XML declaration. The root element is the content after the next "<". You need to send us what that content looks like including its attributes. IE. Everything between the "<" and the ">".

Thanks.

John

-----Original Message-----
From: hbarrett [mailto:hbarrett@anonymised.com]
Sent: Thursday, 7 April 2011 5:37 AM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] Root element not set

I transformed some fgdc metadata into ISO using saxon and this xslt:
http://www.ncddc.noaa.gov/technology/metadataandxml/files/csdg
m2iso19115-220110228.xslt
After all metadata was transformed I tried to import it into
Geonetwork and
I get the error:"Root element not set"

The top of my xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>

Does this look right?

Thanks.

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Root-element-not-set-tp

6247338p6247338.html

Sent from the GeoNetwork users mailing list archive at Nabble.com.

--------------------------------------------------------------
----------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
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

Try changing your namespace declarations and schema location to this:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
xmlns:gco="http://www.isotc211.org/2005/gco&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot;
xmlns:srv="http://www.isotc211.org/2005/srv&quot;
xmlns:gml="http://www.opengis.net/gml/3.2&quot;
xmlns:gsr="http://www.isotc211.org/2005/gsr&quot;
xmlns:gss="http://www.isotc211.org/2005/gss&quot;
xmlns:gts="http://www.isotc211.org/2005/gts&quot;
xmlns:gmx="http://www.isotc211.org/2005/gmx&quot;
xmlns:gmi="http://www.isotc211.org/2005/gmi&quot;
xsi:schemaLocation="http://www.isotc211.org/2005/gmi
..\schemas\ISOngdc\schema.xsd">

...remove srv namespace if that is not in use (otherwise GN will assume it
is an ISO 19119 record).

I have noticed that sometimes GeoNetwork does not like the gml/3.2
delcaration. If that is the case (will be noticeable in the validation) then
use this declaration for gml
xmlns:gml="http://www.opengis.net/gml&quot;

-----Original Message-----
From: Hays Barrett [mailto:hbarrett@anonymised.com]
Sent: Thursday, April 07, 2011 10:22 AM
To: john.hockaday@anonymised.com; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Root element not set [SEC=UNCLASSIFIED]

Strange. If you look at my post at
http://osgeo-org.1803224.n2.nabble.com/Root-element-not-set-td6247338.html
you can see I did post it.
Somehow it got striped.
I am going to try to send it to the listserv via this
e-mail. If it does not appear below, can you please look
at the url above? Thanks!

<gmi:MI_Metadata
xmlns:gss="http://www.isotc211.org/2005/gss&quot;
                  xmlns:gts="http://www.isotc211.org/2005/gts&quot;
                  xmlns:gml="http://www.opengis.net/gml/3.2&quot;
                  xmlns:xlink="http://www.w3.org/1999/xlink&quot;
                  xmlns:gco="http://www.isotc211.org/2005/gco&quot;
                  xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
                  xmlns:gmi="http://www.isotc211.org/2005/gmi&quot;
                  xmlns:gmx="http://www.isotc211.org/2005/gmx&quot;
                  xmlns:gsr="http://www.isotc211.org/2005/gsr&quot;
                  xmlns="http://www.isotc211.org/2005/gmi&quot;
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
                  xsi:schemaLocation="http://www.isotc211.org/2005/gmi
Q:/users/mize.jacqueline/ISO/gmi/gmi.xsd">
<gmd:fileIdentifier>

On Thu, 7 Apr 2011 14:02:17 +1000
  <john.hockaday@anonymised.com> wrote:

Hi,

The <?xml version="1.0" encoding="UTF-8"?> is not the
root element. It is the XML declaration. The root element
is the content after the next "<". You need to send us
what that content looks like including its attributes.
IE. Everything between the "<" and the ">".

Thanks.

John

-----Original Message-----
From: hbarrett [mailto:hbarrett@anonymised.com]
Sent: Thursday, 7 April 2011 5:37 AM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] Root element not set

I transformed some fgdc metadata into ISO using saxon
and this xslt:
http://www.ncddc.noaa.gov/technology/metadataandxml/files/csdg
m2iso19115-220110228.xslt
After all metadata was transformed I tried to import it
into
Geonetwork and
I get the error:"Root element not set"

The top of my xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>

Does this look right?

Thanks.

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Root-element-not-set-tp

6247338p6247338.html

Sent from the GeoNetwork users mailing list archive at
Nabble.com.

--------------------------------------------------------------
----------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
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

----------------------------------------------------------------------------
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
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