Author: desruisseaux
Date: Wed Apr 11 12:39:43 2018
New Revision: 1828895

URL: http://svn.apache.org/viewvc?rev=1828895&view=rev
Log:
Initial commit of metadata XML files produced by MarshallingTest, for 
anti-regression tests later.
Those files are known to not be conformant to ISO schemas yet. They will need 
to be fixed later.

Added:
    
sis/branches/JDK8/core/sis-metadata/src/test/resources/org/apache/sis/metadata/xml/2007/Metadata.xml
    
sis/branches/JDK8/core/sis-metadata/src/test/resources/org/apache/sis/metadata/xml/2016/Metadata.xml
Modified:
    
sis/branches/JDK8/core/sis-metadata/src/test/java/org/apache/sis/metadata/iso/MarshallingTest.java

Modified: 
sis/branches/JDK8/core/sis-metadata/src/test/java/org/apache/sis/metadata/iso/MarshallingTest.java
URL: 
http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-metadata/src/test/java/org/apache/sis/metadata/iso/MarshallingTest.java?rev=1828895&r1=1828894&r2=1828895&view=diff
==============================================================================
--- 
sis/branches/JDK8/core/sis-metadata/src/test/java/org/apache/sis/metadata/iso/MarshallingTest.java
 [UTF-8] (original)
+++ 
sis/branches/JDK8/core/sis-metadata/src/test/java/org/apache/sis/metadata/iso/MarshallingTest.java
 [UTF-8] Wed Apr 11 12:39:43 2018
@@ -57,9 +57,10 @@ import org.apache.sis.util.logging.Warni
 import org.apache.sis.measure.Units;
 import org.apache.sis.xml.XML;
 import org.apache.sis.xml.MarshallerPool;
+import org.apache.sis.xml.IdentifierSpace;
 import org.apache.sis.internal.jaxb.gcx.Anchor;
 import org.apache.sis.internal.jaxb.metadata.replace.ReferenceSystemMetadata;
-import org.apache.sis.test.XMLTestCase;
+import org.apache.sis.metadata.xml.TestUsingFile;
 import org.apache.sis.util.iso.Names;
 import org.junit.Test;
 
@@ -79,7 +80,13 @@ import static org.junit.Assert.*;
  * @since 1.0
  * @module
  */
-public final class MarshallingTest extends XMLTestCase implements 
WarningListener<Object> {
+public final class MarshallingTest extends TestUsingFile implements 
WarningListener<Object> {
+    /**
+     * An XML file containing a metadata.
+     * This is mostly an anti-regression test.
+     */
+    private static final String FILENAME = "Metadata.xml";
+
     /**
      * The marshaller used to handle marshalling the created DefaultMetadata 
object.
      */
@@ -216,10 +223,12 @@ public final class MarshallingTest exten
                 onlineResource.setProtocol("Submarine HTTP");
                 onlineResource.setApplicationProfile("Imaginary work");
                 onlineResource.setFunction(OnLineFunction.SEARCH);
+                
onlineResource.getIdentifierMap().putSpecialized(IdentifierSpace.ID, 
"timaeus");    // For enabling references
                 contact.getOnlineResources().add(onlineResource);
                 contact.setHoursOfService(Collections.singleton(new 
SimpleInternationalString("Weekdays 9:00 AM - 5:00 PM")));
                 contact.setContactInstructions(new 
SimpleInternationalString("Through thought"));
                 contact.setContactType(new 
SimpleInternationalString("Virtual"));
+                contact.getIdentifierMap().putSpecialized(IdentifierSpace.ID, 
"thought");           // For enabling references
             }
             // Create some individuals
             final DefaultIndividual individual  = new 
DefaultIndividual("Socrates", "Philosopher", null);
@@ -352,6 +361,7 @@ public final class MarshallingTest exten
             }
             final DefaultTemporalExtent temporal = new DefaultTemporalExtent();
             extent.getTemporalElements().add(temporal);
+            extent.getIdentifierMap().putSpecialized(IdentifierSpace.ID, 
"azores");     // For enabling references
             extents = Collections.singleton(extent);
             dataId.setExtents(extents);
         }
@@ -385,6 +395,7 @@ public final class MarshallingTest exten
             releasability.setStatement(new SimpleInternationalString("Public 
domain"));
             constraint.setReleasability(releasability);
             constraint.setConstraintApplicationScope(new 
DefaultScope(ScopeCode.DOCUMENT));
+            constraint.getIdentifierMap().putSpecialized(IdentifierSpace.ID, 
"public");         // For enabling references
             resourceConstraints = Collections.singleton(constraint);
             dataId.setResourceConstraints(resourceConstraints);
         }
@@ -414,6 +425,7 @@ public final class MarshallingTest exten
         cit.setAlternateTitles(Arrays.asList(new 
SimpleInternationalString("Island lost again"),
                                              new Anchor(new 
URI("http://map-example.com";), "Map example")));
         cit.getDates().add(new DefaultCitationDate(new Date(1523224800000L), 
DateType.CREATION));
+        cit.getIdentifierMap().putSpecialized(IdentifierSpace.ID, 
"lost-island");
         dataId.setCitation(cit);
         dataId.setTemporalResolutions(Collections.emptySet());              // 
TODO: depends on sis-temporal
         final Collection<MaintenanceInformation> resourceMaintenances;
@@ -439,6 +451,7 @@ public final class MarshallingTest exten
                 scopeDescription.setDataset("Imaginary map");
                 maintenanceScope.getLevelDescription().add(scopeDescription);
             }
+            
maintenanceInfo.getIdentifierMap().putSpecialized(IdentifierSpace.ID, 
"not-planned");
             maintenanceInfo.getMaintenanceScopes().add(maintenanceScope);
             resourceMaintenances = Collections.singleton(maintenanceInfo);
             dataId.setResourceMaintenances(resourceMaintenances);
@@ -478,6 +491,7 @@ public final class MarshallingTest exten
             keywords.setKeywordClass(keywordClass);
             keywords.setKeywords(Arrays.asList(new 
SimpleInternationalString("Water"),
                                                new 
SimpleInternationalString("Aether")));
+            keywords.getIdentifierMap().putSpecialized(IdentifierSpace.ID, 
"greek-elements");
             descriptiveKeywords = Collections.singleton(keywords);
             dataId.setDescriptiveKeywords(descriptiveKeywords);
         }
@@ -501,6 +515,7 @@ public final class MarshallingTest exten
             final DefaultAssociatedResource associatedResource = new 
DefaultAssociatedResource();
             associatedResource.setAssociationType(AssociationType.DEPENDENCY);
             associatedResource.setInitiativeType(InitiativeType.EXPERIMENT);
+            
associatedResource.getIdentifierMap().putSpecialized(IdentifierSpace.ID, 
"dependency");
             associatedResources = Collections.singleton(associatedResource);
             dataId.setAssociatedResources(associatedResources);
         }

Added: 
sis/branches/JDK8/core/sis-metadata/src/test/resources/org/apache/sis/metadata/xml/2007/Metadata.xml
URL: 
http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-metadata/src/test/resources/org/apache/sis/metadata/xml/2007/Metadata.xml?rev=1828895&view=auto
==============================================================================
--- 
sis/branches/JDK8/core/sis-metadata/src/test/resources/org/apache/sis/metadata/xml/2007/Metadata.xml
 (added)
+++ 
sis/branches/JDK8/core/sis-metadata/src/test/resources/org/apache/sis/metadata/xml/2007/Metadata.xml
 Wed Apr 11 12:39:43 2018
@@ -0,0 +1,694 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<gmd:MD_Metadata
+    xmlns:gml   = "http://www.opengis.net/gml/3.2";
+    xmlns:gmd   = "http://www.isotc211.org/2005/gmd";
+    xmlns:gmx   = "http://www.isotc211.org/2005/gmx";
+    xmlns:gco   = "http://www.isotc211.org/2005/gco";
+    xmlns:srv   = "http://www.isotc211.org/2005/srv";
+    xmlns:xsi   = "http://www.w3.org/2001/XMLSchema-instance";
+    xmlns:xlink = "http://www.w3.org/1999/xlink";
+    xsi:schemaLocation = "http://www.isotc211.org/2005/gmd 
http://schemas.opengis.net/iso/19139/20070417/gmd/gmd.xsd
+                          http://www.isotc211.org/2005/gmx 
http://schemas.opengis.net/iso/19139/20070417/gmx/gmx.xsd";>
+
+  <gmd:fileIdentifier>
+    <gco:CharacterString>a-metadata-identifier</gco:CharacterString>
+  </gmd:fileIdentifier>
+  <gmd:language>
+    <gmd:LanguageCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#LanguageCode";
 codeListValue="eng" codeSpace="eng">English</gmd:LanguageCode>
+  </gmd:language>
+  <gmd:characterSet>
+    <gmd:MD_CharacterSetCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_CharacterSetCode";
 codeListValue="8859part1">ISO-8859-1</gmd:MD_CharacterSetCode>
+  </gmd:characterSet>
+  <gmd:parentIdentifier>
+    <gco:CharacterString>A parent metadata</gco:CharacterString>
+  </gmd:parentIdentifier>
+  <gmd:hierarchyLevel>
+    <gmd:MD_ScopeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_ScopeCode";
 codeListValue="dataset" codeSpace="eng">Dataset</gmd:MD_ScopeCode>
+  </gmd:hierarchyLevel>
+  <gmd:hierarchyLevelName>
+    <gco:CharacterString>Metadata for an imaginary data 
set</gco:CharacterString>
+  </gmd:hierarchyLevelName>
+  <gmd:contact>
+    <gmd:CI_ResponsibleParty>
+      <gmd:individualName>
+        <gco:CharacterString>Socrates</gco:CharacterString>
+      </gmd:individualName>
+      <gmd:organisationName>
+        <gco:CharacterString>Plato Republic</gco:CharacterString>
+      </gmd:organisationName>
+      <gmd:positionName>
+        <gco:CharacterString>Philosopher</gco:CharacterString>
+      </gmd:positionName>
+      <gmd:contactInfo>
+        <gmd:CI_Contact id="thought">
+          <gmd:phone>
+            <gmd:CI_Telephone>
+              <gmd:voice>
+                <gco:CharacterString>555-444-3333</gco:CharacterString>
+              </gmd:voice>
+              <gmd:facsimile>
+                <gco:CharacterString>555-555-5555</gco:CharacterString>
+              </gmd:facsimile>
+            </gmd:CI_Telephone>
+          </gmd:phone>
+          <gmd:address>
+            <gmd:CI_Address>
+              <gmd:deliveryPoint>
+                <gco:CharacterString>123 Main Street</gco:CharacterString>
+              </gmd:deliveryPoint>
+              <gmd:city>
+                <gco:CharacterString>Metropolis city</gco:CharacterString>
+              </gmd:city>
+              <gmd:administrativeArea>
+                <gco:CharacterString>Utopia province</gco:CharacterString>
+              </gmd:administrativeArea>
+              <gmd:postalCode>
+                <gco:CharacterString>A1A 2C2</gco:CharacterString>
+              </gmd:postalCode>
+              <gmd:country>
+                <gco:CharacterString>Atgmdtis isgmdd</gco:CharacterString>
+              </gmd:country>
+              <gmd:electronicMailAddress>
+                <gco:CharacterString>t...@example.com</gco:CharacterString>
+              </gmd:electronicMailAddress>
+            </gmd:CI_Address>
+          </gmd:address>
+          <gmd:onlineResource>
+            <gmd:CI_OnlineResource id="timaeus">
+              <gmd:linkage>
+                <gmd:URL>http://example.com</gmd:URL>
+              </gmd:linkage>
+              <gmd:protocol>
+                <gco:CharacterString>Submarine HTTP</gco:CharacterString>
+              </gmd:protocol>
+              <gmd:applicationProfile>
+                <gco:CharacterString>Imaginary work</gco:CharacterString>
+              </gmd:applicationProfile>
+              <gmd:name>
+                <gco:CharacterString>Timaeus &amp; 
Critias</gco:CharacterString>
+              </gmd:name>
+              <gmd:description xsi:type="gmd:PT_FreeText_PropertyType">
+                <gco:CharacterString>A dialog between 
philosophers.</gco:CharacterString>
+                <gmd:PT_FreeText>
+                  <gmd:textGroup>
+                    <gmd:LocalisedCharacterString locale="#locale-eng">A 
dialog between philosophers.</gmd:LocalisedCharacterString>
+                  </gmd:textGroup>
+                  <gmd:textGroup>
+                    <gmd:LocalisedCharacterString locale="#locale-fra">Un 
dialogue entre philosophes.</gmd:LocalisedCharacterString>
+                  </gmd:textGroup>
+                </gmd:PT_FreeText>
+              </gmd:description>
+              <gmd:function>
+                <gmd:CI_OnLineFunctionCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#CI_OnLineFunctionCode";
 codeListValue="search" codeSpace="eng">Search</gmd:CI_OnLineFunctionCode>
+              </gmd:function>
+            </gmd:CI_OnlineResource>
+          </gmd:onlineResource>
+          <gmd:hoursOfService>
+            <gco:CharacterString>Weekdays 9:00 AM - 5:00 
PM</gco:CharacterString>
+          </gmd:hoursOfService>
+          <gmd:contactInstructions>
+            <gco:CharacterString>Through thought</gco:CharacterString>
+          </gmd:contactInstructions>
+        </gmd:CI_Contact>
+      </gmd:contactInfo>
+      <gmd:role>
+        <gmd:CI_RoleCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#CI_RoleCode";
 codeListValue="pointOfContact" codeSpace="eng">Point of 
contact</gmd:CI_RoleCode>
+      </gmd:role>
+    </gmd:CI_ResponsibleParty>
+  </gmd:contact>
+  <gmd:contact>
+    <gmd:CI_ResponsibleParty>
+      <gmd:individualName>
+        <gco:CharacterString>Hermocrates</gco:CharacterString>
+      </gmd:individualName>
+      <gmd:positionName>
+        <gco:CharacterString>Politician</gco:CharacterString>
+      </gmd:positionName>
+      <gmd:contactInfo xlink:href="#thought"></gmd:contactInfo>
+      <gmd:role>
+        <gmd:CI_RoleCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#CI_RoleCode";
 codeListValue="pointOfContact" codeSpace="eng">Point of 
contact</gmd:CI_RoleCode>
+      </gmd:role>
+    </gmd:CI_ResponsibleParty>
+  </gmd:contact>
+  <gmd:dateStamp>
+    <gco:DateTime>2009-12-16T12:00:29.580+01:00</gco:DateTime>
+  </gmd:dateStamp>
+  <gmd:metadataStandardName>
+    <gco:CharacterString>ISO 19115-1</gco:CharacterString>
+  </gmd:metadataStandardName>
+  <gmd:metadataStandardVersion>
+    <gco:CharacterString>2014</gco:CharacterString>
+  </gmd:metadataStandardVersion>
+  <gmd:locale>
+    <gmd:PT_Locale>
+      <gmd:languageCode>
+        <gmd:LanguageCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#LanguageCode";
 codeListValue="fra" codeSpace="eng">French</gmd:LanguageCode>
+      </gmd:languageCode>
+      <gmd:country>
+        <gmd:Country 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#Country";
 codeListValue="CA" codeSpace="eng">Canada</gmd:Country>
+      </gmd:country>
+      <gmd:characterEncoding>
+        <gmd:MD_CharacterSetCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_CharacterSetCode";
 codeListValue="utf8" codeSpace="eng">UTF-8</gmd:MD_CharacterSetCode>
+      </gmd:characterEncoding>
+    </gmd:PT_Locale>
+  </gmd:locale>
+  <gmd:spatialRepresentationInfo>
+    <gmd:MD_Georectified>
+      <gmd:numberOfDimensions>
+        <gco:Integer>2</gco:Integer>
+      </gmd:numberOfDimensions>
+      <gmd:axisDimensionProperties>
+        <gmd:MD_Dimension>
+          <gmd:dimensionName>
+            <gmd:MD_DimensionNameTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_DimensionNameTypeCode";
 codeListValue="row">Row</gmd:MD_DimensionNameTypeCode>
+          </gmd:dimensionName>
+          <gmd:dimensionSize>
+            <gco:Integer>7777</gco:Integer>
+          </gmd:dimensionSize>
+          <gmd:resolution>
+            <gco:Measure 
uom="http://schemas.opengis.net/iso/19139/20070417/resources/uom/gmxUom.xml#xpointer(//*[@gml:id='m'])">10.0</gco:Measure>
+          </gmd:resolution>
+        </gmd:MD_Dimension>
+      </gmd:axisDimensionProperties>
+      <gmd:axisDimensionProperties>
+        <gmd:MD_Dimension>
+          <gmd:dimensionName>
+            <gmd:MD_DimensionNameTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_DimensionNameTypeCode";
 codeListValue="column">Column</gmd:MD_DimensionNameTypeCode>
+          </gmd:dimensionName>
+          <gmd:dimensionSize>
+            <gco:Integer>2233</gco:Integer>
+          </gmd:dimensionSize>
+          <gmd:resolution>
+            <gco:Measure 
uom="http://schemas.opengis.net/iso/19139/20070417/resources/uom/gmxUom.xml#xpointer(//*[@gml:id='m'])">5.0</gco:Measure>
+          </gmd:resolution>
+        </gmd:MD_Dimension>
+      </gmd:axisDimensionProperties>
+      <gmd:cellGeometry>
+        <gmd:MD_CellGeometryCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_CellGeometryCode";
 codeListValue="area" codeSpace="eng">Area</gmd:MD_CellGeometryCode>
+      </gmd:cellGeometry>
+      <gmd:transformationParameterAvailability>
+        <gco:Boolean>false</gco:Boolean>
+      </gmd:transformationParameterAvailability>
+      <gmd:checkPointAvailability>
+        <gco:Boolean>false</gco:Boolean>
+      </gmd:checkPointAvailability>
+      <gmd:pointInPixel>
+        <gmd:MD_PixelOrientationCode>upperRight</gmd:MD_PixelOrientationCode>
+      </gmd:pointInPixel>
+    </gmd:MD_Georectified>
+  </gmd:spatialRepresentationInfo>
+  <gmd:referenceSystemInfo>
+    <gmd:MD_ReferenceSystem>
+      <gmd:referenceSystemIdentifier>
+        <gmd:RS_Identifier>
+          <gmd:authority>
+            <gmd:CI_Citation>
+              <gmd:title>
+                <gco:CharacterString>Atgmdtis grid</gco:CharacterString>
+              </gmd:title>
+              <gmd:date>
+                <gmd:CI_Date>
+                  <gmd:date>
+                    <gco:DateTime>2009-12-16T12:00:29.580+01:00</gco:DateTime>
+                  </gmd:date>
+                  <gmd:dateType>
+                    <gmd:CI_DateTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode";
 codeListValue="creation" codeSpace="eng">Creation</gmd:CI_DateTypeCode>
+                  </gmd:dateType>
+                </gmd:CI_Date>
+              </gmd:date>
+              <gmd:citedResponsibleParty>
+                <gmd:CI_ResponsibleParty>
+                  <gmd:organisationName>
+                    <gco:CharacterString>Atgmdtis national mapping 
agency</gco:CharacterString>
+                  </gmd:organisationName>
+                  <gmd:role>
+                    <gmd:CI_RoleCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#CI_RoleCode";
 codeListValue="publisher" codeSpace="eng">Publisher</gmd:CI_RoleCode>
+                  </gmd:role>
+                </gmd:CI_ResponsibleParty>
+              </gmd:citedResponsibleParty>
+            </gmd:CI_Citation>
+          </gmd:authority>
+          <gmd:code>
+            <gco:CharacterString>AG9000</gco:CharacterString>
+          </gmd:code>
+          <gmd:codeSpace>
+            <gco:CharacterString>rs.id.ns</gco:CharacterString>
+          </gmd:codeSpace>
+          <gmd:version>
+            <gco:CharacterString>1.0</gco:CharacterString>
+          </gmd:version>
+        </gmd:RS_Identifier>
+      </gmd:referenceSystemIdentifier>
+    </gmd:MD_ReferenceSystem>
+  </gmd:referenceSystemInfo>
+  <gmd:metadataExtensionInfo>
+    <gmd:MD_MetadataExtensionInformation>
+      <gmd:extensionOnLineResource 
xlink:href="#timaeus"></gmd:extensionOnLineResource>
+      <gmd:extendedElementInformation>
+        <gmd:MD_ExtendedElementInformation>
+          <gmd:name>
+            <gco:CharacterString>ExtendedElementName</gco:CharacterString>
+          </gmd:name>
+          <gmd:shortName>
+            <gco:CharacterString>ExtEltName</gco:CharacterString>
+          </gmd:shortName>
+          <gmd:domainCode>
+            <gco:Integer>1234</gco:Integer>
+          </gmd:domainCode>
+          <gmd:definition>
+            <gco:CharacterString>An extended element not included in the 
standard.</gco:CharacterString>
+          </gmd:definition>
+          <gmd:obligation>
+            <gmd:MD_ObligationCode>conditional</gmd:MD_ObligationCode>
+          </gmd:obligation>
+          <gmd:condition>
+            <gco:CharacterString>Presents in “Imaginary work” 
profile.</gco:CharacterString>
+          </gmd:condition>
+          <gmd:dataType>
+            <gmd:MD_DatatypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_DatatypeCode";
 codeListValue="metaClass">Meta class</gmd:MD_DatatypeCode>
+          </gmd:dataType>
+          <gmd:maximumOccurrence>
+            <gco:Integer>3</gco:Integer>
+          </gmd:maximumOccurrence>
+          <gmd:domainValue>
+            <gco:CharacterString>Alpha, beta or gamma.</gco:CharacterString>
+          </gmd:domainValue>
+          <gmd:parentEntity>
+            <gco:CharacterString>VirtualObject</gco:CharacterString>
+          </gmd:parentEntity>
+          <gmd:rule>
+            <gco:CharacterString>Element exists in cited 
resource.</gco:CharacterString>
+          </gmd:rule>
+          <gmd:rationale>
+            <gco:CharacterString>For testing extended 
elements.</gco:CharacterString>
+          </gmd:rationale>
+        </gmd:MD_ExtendedElementInformation>
+      </gmd:extendedElementInformation>
+    </gmd:MD_MetadataExtensionInformation>
+  </gmd:metadataExtensionInfo>
+  <gmd:identificationInfo>
+    <gmd:MD_DataIdentification>
+      <gmd:citation>
+        <gmd:CI_Citation id="lost-isgmdd">
+          <gmd:title>
+            <gco:CharacterString>A lost isgmdd</gco:CharacterString>
+          </gmd:title>
+          <gmd:alternateTitle>
+            <gco:CharacterString>Isgmdd lost again</gco:CharacterString>
+          </gmd:alternateTitle>
+          <gmd:alternateTitle>
+            <gmx:Anchor xlink:href="http://map-example.com";>Map 
example</gmx:Anchor>
+          </gmd:alternateTitle>
+          <gmd:date>
+            <gmd:CI_Date>
+              <gmd:date>
+                <gco:Date>2018-04-09</gco:Date>
+              </gmd:date>
+              <gmd:dateType>
+                <gmd:CI_DateTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode";
 codeListValue="creation" codeSpace="eng">Creation</gmd:CI_DateTypeCode>
+              </gmd:dateType>
+            </gmd:CI_Date>
+          </gmd:date>
+          <gmd:edition>
+            <gco:CharacterString>First edition</gco:CharacterString>
+          </gmd:edition>
+          <gmd:editionDate>
+            <gco:Date>2018-04-10</gco:Date>
+          </gmd:editionDate>
+          <gmd:collectiveTitle>
+            <gco:CharacterString>Popular legends</gco:CharacterString>
+          </gmd:collectiveTitle>
+        </gmd:CI_Citation>
+      </gmd:citation>
+      <gmd:abstract xsi:type="gmd:PT_FreeText_PropertyType">
+        <gco:CharacterString>Metadata for an imaginary 
map.</gco:CharacterString>
+        <gmd:PT_FreeText>
+          <gmd:textGroup>
+            <gmd:LocalisedCharacterString locale="#locale-eng">Metadata for an 
imaginary map.</gmd:LocalisedCharacterString>
+          </gmd:textGroup>
+          <gmd:textGroup>
+            <gmd:LocalisedCharacterString locale="#locale-fra">Méta-données 
pour une carte imaginaire.</gmd:LocalisedCharacterString>
+          </gmd:textGroup>
+        </gmd:PT_FreeText>
+      </gmd:abstract>
+      <gmd:purpose>
+        <gco:CharacterString>For XML (un)marshalling 
tests.</gco:CharacterString>
+      </gmd:purpose>
+      <gmd:status>
+        <gmd:MD_ProgressCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_ProgressCode";
 codeListValue="historicalArchive" codeSpace="eng">Historical 
archive</gmd:MD_ProgressCode>
+      </gmd:status>
+      <gmd:spatialRepresentationType>
+        <gmd:MD_SpatialRepresentationTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_SpatialRepresentationTypeCode";
 codeListValue="grid">Grid</gmd:MD_SpatialRepresentationTypeCode>
+      </gmd:spatialRepresentationType>
+      <gmd:spatialResolution>
+        <gmd:MD_Resolution>
+          <gmd:distance>
+            <gco:Distance 
uom="http://schemas.opengis.net/iso/19139/20070417/resources/uom/gmxUom.xml#xpointer(//*[@gml:id='m'])">56777.0</gco:Distance>
+          </gmd:distance>
+        </gmd:MD_Resolution>
+      </gmd:spatialResolution>
+      <gmd:topicCategory>
+        <gmd:MD_TopicCategoryCode>oceans</gmd:MD_TopicCategoryCode>
+      </gmd:topicCategory>
+      <gmd:topicCategory>
+        <gmd:MD_TopicCategoryCode>society</gmd:MD_TopicCategoryCode>
+      </gmd:topicCategory>
+      <gmd:resourceMaintenance>
+        <gmd:MD_MaintenanceInformation id="not-pgmdned">
+          <gmd:maintenanceAndUpdateFrequency>
+            <gmd:MD_MaintenanceFrequencyCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_MaintenanceFrequencyCode";
 codeListValue="notPgmdned" codeSpace="eng">Not 
pgmdned</gmd:MD_MaintenanceFrequencyCode>
+          </gmd:maintenanceAndUpdateFrequency>
+          <gmd:updateScope>
+            <gmd:MD_ScopeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_ScopeCode";
 codeListValue="model" codeSpace="eng">Model</gmd:MD_ScopeCode>
+          </gmd:updateScope>
+          <gmd:updateScopeDescription>
+            <gmd:MD_ScopeDescription>
+              <gmd:dataset>
+                <gco:CharacterString>Imaginary map</gco:CharacterString>
+              </gmd:dataset>
+            </gmd:MD_ScopeDescription>
+          </gmd:updateScopeDescription>
+        </gmd:MD_MaintenanceInformation>
+      </gmd:resourceMaintenance>
+      <gmd:resourceFormat>
+        <gmd:MD_Format>
+          <gmd:name>
+            <gco:CharacterString>PNG</gco:CharacterString>
+          </gmd:name>
+          <gmd:version>
+            <gco:CharacterString>November 2003</gco:CharacterString>
+          </gmd:version>
+          <gmd:amendmentNumber>
+            <gco:CharacterString>Second edition</gco:CharacterString>
+          </gmd:amendmentNumber>
+          <gmd:specification>
+            <gco:CharacterString>Portable Network 
Graphics</gco:CharacterString>
+          </gmd:specification>
+          <gmd:fileDecompressionTechnique>
+            <gco:CharacterString>L77 / Huffman coding</gco:CharacterString>
+          </gmd:fileDecompressionTechnique>
+        </gmd:MD_Format>
+      </gmd:resourceFormat>
+      <gmd:descriptiveKeywords>
+        <gmd:MD_Keywords id="greek-elements">
+          <gmd:keyword>
+            <gco:CharacterString>Water</gco:CharacterString>
+          </gmd:keyword>
+          <gmd:keyword>
+            <gco:CharacterString>Aether</gco:CharacterString>
+          </gmd:keyword>
+          <gmd:type>
+            <gmd:MD_KeywordTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_KeywordTypeCode";
 codeListValue="theme" codeSpace="eng">Theme</gmd:MD_KeywordTypeCode>
+          </gmd:type>
+          <gmd:thesaurusName>
+            <gmd:CI_Citation>
+              <gmd:title>
+                <gco:CharacterString>Plato's dialogues</gco:CharacterString>
+              </gmd:title>
+            </gmd:CI_Citation>
+          </gmd:thesaurusName>
+        </gmd:MD_Keywords>
+      </gmd:descriptiveKeywords>
+      <gmd:resourceSpecificUsage>
+        <gmd:MD_Usage>
+          <gmd:specificUsage>
+            <gco:CharacterString>For testing purpose 
only.</gco:CharacterString>
+          </gmd:specificUsage>
+          <gmd:usageDateTime>
+            <gco:DateTime>2018-04-10T14:00:00+02:00</gco:DateTime>
+          </gmd:usageDateTime>
+          <gmd:userDeterminedLimitations>
+            <gco:CharacterString>Not to be used outside MarshallingTest.java 
test file.</gco:CharacterString>
+          </gmd:userDeterminedLimitations>
+        </gmd:MD_Usage>
+      </gmd:resourceSpecificUsage>
+      <gmd:resourceConstraints>
+        <gmd:MD_Constraints id="public">
+          <gmd:useLimitation>
+            <gco:CharacterString>Not for navigation.</gco:CharacterString>
+          </gmd:useLimitation>
+        </gmd:MD_Constraints>
+      </gmd:resourceConstraints>
+      <gmd:aggregationInfo>
+        <gmd:MD_AggregateInformation>
+          <gmd:associationType>
+            <gmd:DS_AssociationTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#DS_AssociationTypeCode";
 codeListValue="dependency" 
codeSpace="eng">Dependency</gmd:DS_AssociationTypeCode>
+          </gmd:associationType>
+          <gmd:initiativeType>
+            <gmd:DS_InitiativeTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#DS_InitiativeTypeCode";
 codeListValue="experiment">Experiment</gmd:DS_InitiativeTypeCode>
+          </gmd:initiativeType>
+        </gmd:MD_AggregateInformation>
+      </gmd:aggregationInfo>
+      <gmd:language>
+        <gmd:LanguageCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#LanguageCode";
 codeListValue="eng" codeSpace="eng">English</gmd:LanguageCode>
+      </gmd:language>
+      <gmd:language>
+        <gmd:LanguageCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#LanguageCode";
 codeListValue="fra" codeSpace="eng">French</gmd:LanguageCode>
+      </gmd:language>
+      <gmd:characterSet>
+        <gmd:MD_CharacterSetCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_CharacterSetCode";
 codeListValue="8859part1" codeSpace="eng">ISO-8859-1</gmd:MD_CharacterSetCode>
+      </gmd:characterSet>
+      <gmd:environmentDescription>
+        <gco:CharacterString>High humidity.</gco:CharacterString>
+      </gmd:environmentDescription>
+      <gmd:extent>
+        <gmd:EX_Extent id="azores">
+          <gmd:description>
+            <gco:CharacterString>Azores</gco:CharacterString>
+          </gmd:description>
+          <gmd:geographicElement>
+            <gmd:EX_GeographicBoundingBox>
+              <gmd:extentTypeCode>
+                <gco:Boolean>true</gco:Boolean>
+              </gmd:extentTypeCode>
+              <gmd:westBoundLongitude>
+                <gco:Decimal>-24.5</gco:Decimal>
+              </gmd:westBoundLongitude>
+              <gmd:eastBoundLongitude>
+                <gco:Decimal>-32.0</gco:Decimal>
+              </gmd:eastBoundLongitude>
+              <gmd:southBoundLatitude>
+                <gco:Decimal>36.75</gco:Decimal>
+              </gmd:southBoundLatitude>
+              <gmd:northBoundLatitude>
+                <gco:Decimal>40.0</gco:Decimal>
+              </gmd:northBoundLatitude>
+            </gmd:EX_GeographicBoundingBox>
+          </gmd:geographicElement>
+          <gmd:temporalElement>
+            <gmd:EX_TemporalExtent></gmd:EX_TemporalExtent>
+          </gmd:temporalElement>
+        </gmd:EX_Extent>
+      </gmd:extent>
+      <gmd:supplementalInformation>
+        <gco:CharacterString>High water pressure.</gco:CharacterString>
+      </gmd:supplementalInformation>
+    </gmd:MD_DataIdentification>
+  </gmd:identificationInfo>
+  <gmd:identificationInfo>
+    <srv:SV_ServiceIdentification>
+      <gmd:citation xlink:href="#lost-isgmdd"></gmd:citation>
+      <gmd:abstract>
+        <gco:CharacterString>An inspiration for story 
tellers.</gco:CharacterString>
+      </gmd:abstract>
+      <gmd:resourceMaintenance 
xlink:href="#not-pgmdned"></gmd:resourceMaintenance>
+      <gmd:descriptiveKeywords 
xlink:href="#greek-elements"></gmd:descriptiveKeywords>
+      <gmd:resourceConstraints xlink:href="#public"></gmd:resourceConstraints>
+      <gmd:aggregationInfo>
+        <gmd:MD_AggregateInformation>
+          <gmd:associationType>
+            <gmd:DS_AssociationTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#DS_AssociationTypeCode";
 codeListValue="dependency" 
codeSpace="eng">Dependency</gmd:DS_AssociationTypeCode>
+          </gmd:associationType>
+          <gmd:initiativeType>
+            <gmd:DS_InitiativeTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#DS_InitiativeTypeCode";
 codeListValue="experiment">Experiment</gmd:DS_InitiativeTypeCode>
+          </gmd:initiativeType>
+        </gmd:MD_AggregateInformation>
+      </gmd:aggregationInfo>
+      <gmd:extent xlink:href="#azores"></gmd:extent>
+      <srv:serviceTypeVersion>
+        <gco:CharacterString>Version 1000+</gco:CharacterString>
+      </srv:serviceTypeVersion>
+      <srv:coupledResource>
+        <srv:SV_CoupledResource></srv:SV_CoupledResource>
+      </srv:coupledResource>
+      <srv:couplingType>
+        <srv:SV_CouplingType 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#SV_CouplingType";
 codeListValue="loose" codeSpace="eng">Loose</srv:SV_CouplingType>
+      </srv:couplingType>
+      <srv:containsOperations>
+        <srv:SV_OperationMetadata>
+          <srv:operationName>
+            <gco:CharacterString>Authoring</gco:CharacterString>
+          </srv:operationName>
+          <srv:DCP>
+            <srv:DCPList 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#DCPList";
 codeListValue="JAVA" codeSpace="eng">Java</srv:DCPList>
+          </srv:DCP>
+          <srv:operationDescription>
+            <gco:CharacterString>Write a book.</gco:CharacterString>
+          </srv:operationDescription>
+          <srv:invocationName>
+            <gco:CharacterString>someMethodName</gco:CharacterString>
+          </srv:invocationName>
+        </srv:SV_OperationMetadata>
+      </srv:containsOperations>
+      <srv:operatesOn>
+        <gmd:MD_DataIdentification>
+          <gmd:citation xlink:href="#lost-isgmdd"></gmd:citation>
+          <gmd:abstract xsi:type="gmd:PT_FreeText_PropertyType">
+            <gco:CharacterString>Metadata for an imaginary 
map.</gco:CharacterString>
+            <gmd:PT_FreeText>
+              <gmd:textGroup>
+                <gmd:LocalisedCharacterString locale="#locale-eng">Metadata 
for an imaginary map.</gmd:LocalisedCharacterString>
+              </gmd:textGroup>
+              <gmd:textGroup>
+                <gmd:LocalisedCharacterString 
locale="#locale-fra">Méta-données pour une carte 
imaginaire.</gmd:LocalisedCharacterString>
+              </gmd:textGroup>
+            </gmd:PT_FreeText>
+          </gmd:abstract>
+          <gmd:purpose>
+            <gco:CharacterString>For XML (un)marshalling 
tests.</gco:CharacterString>
+          </gmd:purpose>
+          <gmd:status>
+            <gmd:MD_ProgressCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_ProgressCode";
 codeListValue="historicalArchive" codeSpace="eng">Historical 
archive</gmd:MD_ProgressCode>
+          </gmd:status>
+          <gmd:spatialRepresentationType>
+            <gmd:MD_SpatialRepresentationTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_SpatialRepresentationTypeCode";
 codeListValue="grid">Grid</gmd:MD_SpatialRepresentationTypeCode>
+          </gmd:spatialRepresentationType>
+          <gmd:spatialResolution>
+            <gmd:MD_Resolution>
+              <gmd:distance>
+                <gco:Distance 
uom="http://schemas.opengis.net/iso/19139/20070417/resources/uom/gmxUom.xml#xpointer(//*[@gml:id='m'])">56777.0</gco:Distance>
+              </gmd:distance>
+            </gmd:MD_Resolution>
+          </gmd:spatialResolution>
+          <gmd:topicCategory>
+            <gmd:MD_TopicCategoryCode>oceans</gmd:MD_TopicCategoryCode>
+          </gmd:topicCategory>
+          <gmd:topicCategory>
+            <gmd:MD_TopicCategoryCode>society</gmd:MD_TopicCategoryCode>
+          </gmd:topicCategory>
+          <gmd:resourceMaintenance 
xlink:href="#not-pgmdned"></gmd:resourceMaintenance>
+          <gmd:resourceFormat>
+            <gmd:MD_Format>
+              <gmd:name>
+                <gco:CharacterString>PNG</gco:CharacterString>
+              </gmd:name>
+              <gmd:version>
+                <gco:CharacterString>November 2003</gco:CharacterString>
+              </gmd:version>
+              <gmd:amendmentNumber>
+                <gco:CharacterString>Second edition</gco:CharacterString>
+              </gmd:amendmentNumber>
+              <gmd:specification>
+                <gco:CharacterString>Portable Network 
Graphics</gco:CharacterString>
+              </gmd:specification>
+              <gmd:fileDecompressionTechnique>
+                <gco:CharacterString>L77 / Huffman coding</gco:CharacterString>
+              </gmd:fileDecompressionTechnique>
+            </gmd:MD_Format>
+          </gmd:resourceFormat>
+          <gmd:descriptiveKeywords 
xlink:href="#greek-elements"></gmd:descriptiveKeywords>
+          <gmd:resourceSpecificUsage>
+            <gmd:MD_Usage>
+              <gmd:specificUsage>
+                <gco:CharacterString>For testing purpose 
only.</gco:CharacterString>
+              </gmd:specificUsage>
+              <gmd:usageDateTime>
+                <gco:DateTime>2018-04-10T14:00:00+02:00</gco:DateTime>
+              </gmd:usageDateTime>
+              <gmd:userDeterminedLimitations>
+                <gco:CharacterString>Not to be used outside 
MarshallingTest.java test file.</gco:CharacterString>
+              </gmd:userDeterminedLimitations>
+            </gmd:MD_Usage>
+          </gmd:resourceSpecificUsage>
+          <gmd:resourceConstraints 
xlink:href="#public"></gmd:resourceConstraints>
+          <gmd:aggregationInfo>
+            <gmd:MD_AggregateInformation>
+              <gmd:associationType>
+                <gmd:DS_AssociationTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#DS_AssociationTypeCode";
 codeListValue="dependency" 
codeSpace="eng">Dependency</gmd:DS_AssociationTypeCode>
+              </gmd:associationType>
+              <gmd:initiativeType>
+                <gmd:DS_InitiativeTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#DS_InitiativeTypeCode";
 codeListValue="experiment">Experiment</gmd:DS_InitiativeTypeCode>
+              </gmd:initiativeType>
+            </gmd:MD_AggregateInformation>
+          </gmd:aggregationInfo>
+          <gmd:language>
+            <gmd:LanguageCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#LanguageCode";
 codeListValue="eng" codeSpace="eng">English</gmd:LanguageCode>
+          </gmd:language>
+          <gmd:language>
+            <gmd:LanguageCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#LanguageCode";
 codeListValue="fra" codeSpace="eng">French</gmd:LanguageCode>
+          </gmd:language>
+          <gmd:characterSet>
+            <gmd:MD_CharacterSetCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_CharacterSetCode";
 codeListValue="8859part1" codeSpace="eng">ISO-8859-1</gmd:MD_CharacterSetCode>
+          </gmd:characterSet>
+          <gmd:environmentDescription>
+            <gco:CharacterString>High humidity.</gco:CharacterString>
+          </gmd:environmentDescription>
+          <gmd:extent xlink:href="#azores"></gmd:extent>
+          <gmd:supplementalInformation>
+            <gco:CharacterString>High water pressure.</gco:CharacterString>
+          </gmd:supplementalInformation>
+        </gmd:MD_DataIdentification>
+      </srv:operatesOn>
+    </srv:SV_ServiceIdentification>
+  </gmd:identificationInfo>
+  <gmd:contentInfo>
+    <gmd:MD_CoverageDescription>
+      <gmd:attributeDescription>
+        <gco:RecordType></gco:RecordType>
+      </gmd:attributeDescription>
+      <gmd:contentType>
+        <gmd:MD_CoverageContentTypeCode 
codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#MD_CoverageContentTypeCode";
 codeListValue="auxillaryInformation" codeSpace="eng">Auxilliary 
information</gmd:MD_CoverageContentTypeCode>
+      </gmd:contentType>
+      <gmd:dimension>
+        <gmd:MD_RangeDimension>
+          <gmd:sequenceIdentifier>
+            <gco:MemberName>
+              <gco:aName>
+                <gco:CharacterString>42</gco:CharacterString>
+              </gco:aName>
+              <gco:attributeType>
+                <gco:TypeName>
+                  <gco:aName>
+                    <gco:CharacterString>Integer</gco:CharacterString>
+                  </gco:aName>
+                </gco:TypeName>
+              </gco:attributeType>
+            </gco:MemberName>
+          </gmd:sequenceIdentifier>
+          <gmd:descriptor>
+            <gco:CharacterString>Population density</gco:CharacterString>
+          </gmd:descriptor>
+        </gmd:MD_RangeDimension>
+      </gmd:dimension>
+    </gmd:MD_CoverageDescription>
+  </gmd:contentInfo>
+  <gmd:contentInfo>
+    <gmd:MD_FeatureCatalogueDescription>
+      <gmd:complianceCode>
+        <gco:Boolean>true</gco:Boolean>
+      </gmd:complianceCode>
+      <gmd:includedWithDataset>
+        <gco:Boolean>true</gco:Boolean>
+      </gmd:includedWithDataset>
+    </gmd:MD_FeatureCatalogueDescription>
+  </gmd:contentInfo>
+</gmd:MD_Metadata>

Added: 
sis/branches/JDK8/core/sis-metadata/src/test/resources/org/apache/sis/metadata/xml/2016/Metadata.xml
URL: 
http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-metadata/src/test/resources/org/apache/sis/metadata/xml/2016/Metadata.xml?rev=1828895&view=auto
==============================================================================
--- 
sis/branches/JDK8/core/sis-metadata/src/test/resources/org/apache/sis/metadata/xml/2016/Metadata.xml
 (added)
+++ 
sis/branches/JDK8/core/sis-metadata/src/test/resources/org/apache/sis/metadata/xml/2016/Metadata.xml
 Wed Apr 11 12:39:43 2018
@@ -0,0 +1,870 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<mdb:MD_Metadata
+    xmlns:mdb = "http://standards.iso.org/iso/19115/-3/mdb/1.0";
+    xmlns:gco = "http://standards.iso.org/iso/19115/-3/gco/1.0";
+    xmlns:lan = "http://standards.iso.org/iso/19115/-3/lan/1.0";
+    xmlns:cit = "http://standards.iso.org/iso/19115/-3/cit/1.0";
+    xmlns:gex = "http://standards.iso.org/iso/19115/-3/gex/1.0";
+    xmlns:mrs = "http://standards.iso.org/iso/19115/-3/mrs/1.0";
+    xmlns:msr = "http://standards.iso.org/iso/19115/-3/msr/1.0";
+    xmlns:mrc = "http://standards.iso.org/iso/19115/-3/mrc/1.0";
+    xmlns:mri = "http://standards.iso.org/iso/19115/-3/mri/1.0";
+    xmlns:mrd = "http://standards.iso.org/iso/19115/-3/mrd/1.0";
+    xmlns:mco = "http://standards.iso.org/iso/19115/-3/mco/1.0";
+    xmlns:mmi = "http://standards.iso.org/iso/19115/-3/mmi/1.0";
+    xmlns:mcc = "http://standards.iso.org/iso/19115/-3/mcc/1.0";
+    xmlns:mex = "http://standards.iso.org/iso/19115/-3/mex/1.0";
+    xmlns:gcx = "http://standards.iso.org/iso/19115/-3/gcx/1.0";
+    xmlns:srv = "http://standards.iso.org/iso/19115/-3/srv/2.0";
+    xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance";
+    xmlns:xlink = "http://www.w3.org/1999/xlink";
+    xsi:schemaLocation = "http://standards.iso.org/iso/19115/-3/mdb/1.0
+                          
http://standards.iso.org/iso/19115/-3/mdb/1.0/mdb.xsd";>
+
+  <mdb:metadataIdentifier>
+    <mcc:MD_Identifier>
+      <mcc:code>
+        <gco:CharacterString>a-metadata-identifier</gco:CharacterString>
+      </mcc:code>
+      <mcc:codeSpace>
+        <gco:CharacterString>md.id.ns</gco:CharacterString>
+      </mcc:codeSpace>
+    </mcc:MD_Identifier>
+  </mdb:metadataIdentifier>
+  <mdb:defaultLocale>
+    <lan:PT_Locale>
+      <lan:language>
+        <lan:LanguageCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#LanguageCode";
 codeListValue="eng" codeSpace="eng">English</lan:LanguageCode>
+      </lan:language>
+      <lan:characterEncoding>
+        <lan:MD_CharacterSetCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_CharacterSetCode";
 codeListValue="utf8" codeSpace="eng">UTF-8</lan:MD_CharacterSetCode>
+      </lan:characterEncoding>
+    </lan:PT_Locale>
+  </mdb:defaultLocale>
+  <mdb:parentMetadata>
+    <cit:CI_Citation>
+      <cit:title>
+        <gco:CharacterString>A parent metadata</gco:CharacterString>
+      </cit:title>
+      <cit:identifier>
+        <mcc:MD_Identifier>
+          <mcc:code>
+            <gco:CharacterString>a-parent-identifier</gco:CharacterString>
+          </mcc:code>
+          <mcc:codeSpace>
+            <gco:CharacterString>pmd.id.ns</gco:CharacterString>
+          </mcc:codeSpace>
+        </mcc:MD_Identifier>
+      </cit:identifier>
+    </cit:CI_Citation>
+  </mdb:parentMetadata>
+  <mdb:contact>
+    <cit:CI_Responsibility>
+      <cit:role>
+        <cit:CI_RoleCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#CI_RoleCode";
 codeListValue="pointOfContact" codeSpace="eng">Point of 
contact</cit:CI_RoleCode>
+      </cit:role>
+      <cit:party>
+        <cit:CI_Organisation>
+          <cit:name>
+            <gco:CharacterString>Plato Republic</gco:CharacterString>
+          </cit:name>
+          <cit:contactInfo>
+            <cit:CI_Contact id="thought">
+              <cit:phone>
+                <cit:CI_Telephone>
+                  <cit:number>
+                    <gco:CharacterString>555-444-3333</gco:CharacterString>
+                  </cit:number>
+                  <cit:numberType>
+                    <cit:CI_TelephoneTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#CI_TelephoneTypeCode";
 codeListValue="voice" codeSpace="eng">Voice</cit:CI_TelephoneTypeCode>
+                  </cit:numberType>
+                </cit:CI_Telephone>
+              </cit:phone>
+              <cit:phone>
+                <cit:CI_Telephone>
+                  <cit:number>
+                    <gco:CharacterString>555-555-5555</gco:CharacterString>
+                  </cit:number>
+                  <cit:numberType>
+                    <cit:CI_TelephoneTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#CI_TelephoneTypeCode";
 codeListValue="facsimile" codeSpace="eng">Facsimile</cit:CI_TelephoneTypeCode>
+                  </cit:numberType>
+                </cit:CI_Telephone>
+              </cit:phone>
+              <cit:address>
+                <cit:CI_Address>
+                  <cit:deliveryPoint>
+                    <gco:CharacterString>123 Main Street</gco:CharacterString>
+                  </cit:deliveryPoint>
+                  <cit:city>
+                    <gco:CharacterString>Metropolis city</gco:CharacterString>
+                  </cit:city>
+                  <cit:administrativeArea>
+                    <gco:CharacterString>Utopia province</gco:CharacterString>
+                  </cit:administrativeArea>
+                  <cit:postalCode>
+                    <gco:CharacterString>A1A 2C2</gco:CharacterString>
+                  </cit:postalCode>
+                  <cit:country>
+                    <gco:CharacterString>Atlantis island</gco:CharacterString>
+                  </cit:country>
+                  <cit:electronicMailAddress>
+                    <gco:CharacterString>t...@example.com</gco:CharacterString>
+                  </cit:electronicMailAddress>
+                </cit:CI_Address>
+              </cit:address>
+              <cit:onlineResource>
+                <cit:CI_OnlineResource id="timaeus">
+                  <cit:linkage>
+                    <gcx:FileName 
src="http://example.com";>example.com</gcx:FileName>
+                  </cit:linkage>
+                  <cit:protocol>
+                    <gco:CharacterString>Submarine HTTP</gco:CharacterString>
+                  </cit:protocol>
+                  <cit:applicationProfile>
+                    <gco:CharacterString>Imaginary work</gco:CharacterString>
+                  </cit:applicationProfile>
+                  <cit:name>
+                    <gco:CharacterString>Timaeus &amp; 
Critias</gco:CharacterString>
+                  </cit:name>
+                  <cit:description xsi:type="lan:PT_FreeText_PropertyType">
+                    <gco:CharacterString>A dialog between 
philosophers.</gco:CharacterString>
+                    <lan:PT_FreeText>
+                      <lan:textGroup>
+                        <lan:LocalisedCharacterString locale="#locale-eng">A 
dialog between philosophers.</lan:LocalisedCharacterString>
+                      </lan:textGroup>
+                      <lan:textGroup>
+                        <lan:LocalisedCharacterString locale="#locale-fra">Un 
dialogue entre philosophes.</lan:LocalisedCharacterString>
+                      </lan:textGroup>
+                    </lan:PT_FreeText>
+                  </cit:description>
+                  <cit:function>
+                    <cit:CI_OnLineFunctionCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#CI_OnLineFunctionCode";
 codeListValue="search" codeSpace="eng">Search</cit:CI_OnLineFunctionCode>
+                  </cit:function>
+                </cit:CI_OnlineResource>
+              </cit:onlineResource>
+              <cit:hoursOfService>
+                <gco:CharacterString>Weekdays 9:00 AM - 5:00 
PM</gco:CharacterString>
+              </cit:hoursOfService>
+              <cit:contactInstructions>
+                <gco:CharacterString>Through thought</gco:CharacterString>
+              </cit:contactInstructions>
+              <cit:contactType>
+                <gco:CharacterString>Virtual</gco:CharacterString>
+              </cit:contactType>
+            </cit:CI_Contact>
+          </cit:contactInfo>
+          <cit:individual>
+            <cit:CI_Individual>
+              <cit:name>
+                <gco:CharacterString>Socrates</gco:CharacterString>
+              </cit:name>
+              <cit:positionName>
+                <gco:CharacterString>Philosopher</gco:CharacterString>
+              </cit:positionName>
+            </cit:CI_Individual>
+          </cit:individual>
+        </cit:CI_Organisation>
+      </cit:party>
+    </cit:CI_Responsibility>
+  </mdb:contact>
+  <mdb:contact>
+    <cit:CI_Responsibility>
+      <cit:role>
+        <cit:CI_RoleCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#CI_RoleCode";
 codeListValue="pointOfContact" codeSpace="eng">Point of 
contact</cit:CI_RoleCode>
+      </cit:role>
+      <cit:party>
+        <cit:CI_Individual>
+          <cit:name>
+            <gco:CharacterString>Hermocrates</gco:CharacterString>
+          </cit:name>
+          <cit:contactInfo xlink:href="#thought"/>
+          <cit:positionName>
+            <gco:CharacterString>Politician</gco:CharacterString>
+          </cit:positionName>
+        </cit:CI_Individual>
+      </cit:party>
+    </cit:CI_Responsibility>
+  </mdb:contact>
+  <mdb:dateInfo>
+    <cit:CI_Date>
+      <cit:date>
+        <gco:DateTime>2009-12-16T12:00:29.580+01:00</gco:DateTime>
+      </cit:date>
+      <cit:dateType>
+        <cit:CI_DateTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#CI_DateTypeCode";
 codeListValue="creation" codeSpace="eng">Creation</cit:CI_DateTypeCode>
+      </cit:dateType>
+    </cit:CI_Date>
+  </mdb:dateInfo>
+  <mdb:metadataStandard>
+    <cit:CI_Citation>
+      <cit:title>
+        <gco:CharacterString>ISO 19115-1</gco:CharacterString>
+      </cit:title>
+      <cit:edition>
+        <gco:CharacterString>2014</gco:CharacterString>
+      </cit:edition>
+    </cit:CI_Citation>
+  </mdb:metadataStandard>
+  <mdb:otherLocale>
+    <lan:PT_Locale>
+      <lan:language>
+        <lan:LanguageCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#LanguageCode";
 codeListValue="fra" codeSpace="eng">French</lan:LanguageCode>
+      </lan:language>
+      <lan:country>
+        <lan:CountryCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#Country";
 codeListValue="CA" codeSpace="eng">Canada</lan:CountryCode>
+      </lan:country>
+      <lan:characterEncoding>
+        <lan:MD_CharacterSetCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_CharacterSetCode";
 codeListValue="utf8" codeSpace="eng">UTF-8</lan:MD_CharacterSetCode>
+      </lan:characterEncoding>
+    </lan:PT_Locale>
+  </mdb:otherLocale>
+  <mdb:spatialRepresentationInfo>
+    <msr:MD_Georectified>
+      <msr:numberOfDimensions>
+        <gco:Integer>2</gco:Integer>
+      </msr:numberOfDimensions>
+      <msr:axisDimensionProperties>
+        <msr:MD_Dimension>
+          <msr:dimensionName>
+            <msr:MD_DimensionNameTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_DimensionNameTypeCode";
 codeListValue="row">Row</msr:MD_DimensionNameTypeCode>
+          </msr:dimensionName>
+          <msr:dimensionSize>
+            <gco:Integer>7777</gco:Integer>
+          </msr:dimensionSize>
+          <msr:resolution>
+            <gco:Measure 
uom="http://schemas.opengis.net/iso/19139/20070417/resources/uom/gmxUom.xml#xpointer(//*[@gml:id='m'])">10.0</gco:Measure>
+          </msr:resolution>
+        </msr:MD_Dimension>
+      </msr:axisDimensionProperties>
+      <msr:axisDimensionProperties>
+        <msr:MD_Dimension>
+          <msr:dimensionName>
+            <msr:MD_DimensionNameTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_DimensionNameTypeCode";
 codeListValue="column">Column</msr:MD_DimensionNameTypeCode>
+          </msr:dimensionName>
+          <msr:dimensionSize>
+            <gco:Integer>2233</gco:Integer>
+          </msr:dimensionSize>
+          <msr:resolution>
+            <gco:Measure 
uom="http://schemas.opengis.net/iso/19139/20070417/resources/uom/gmxUom.xml#xpointer(//*[@gml:id='m'])">5.0</gco:Measure>
+          </msr:resolution>
+        </msr:MD_Dimension>
+      </msr:axisDimensionProperties>
+      <msr:cellGeometry>
+        <msr:MD_CellGeometryCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_CellGeometryCode";
 codeListValue="area" codeSpace="eng">Area</msr:MD_CellGeometryCode>
+      </msr:cellGeometry>
+      <msr:transformationParameterAvailability>
+        <gco:Boolean>false</gco:Boolean>
+      </msr:transformationParameterAvailability>
+      <msr:checkPointAvailability>
+        <gco:Boolean>false</gco:Boolean>
+      </msr:checkPointAvailability>
+      <msr:pointInPixel>
+        <msr:MD_PixelOrientationCode>upperRight</msr:MD_PixelOrientationCode>
+      </msr:pointInPixel>
+    </msr:MD_Georectified>
+  </mdb:spatialRepresentationInfo>
+  <mdb:referenceSystemInfo>
+    <mrs:MD_ReferenceSystem>
+      <mrs:referenceSystemIdentifier>
+        <mcc:MD_Identifier>
+          <mcc:authority>
+            <cit:CI_Citation>
+              <cit:title>
+                <gco:CharacterString>Atlantis grid</gco:CharacterString>
+              </cit:title>
+              <cit:date>
+                <cit:CI_Date>
+                  <cit:date>
+                    <gco:DateTime>2009-12-16T12:00:29.580+01:00</gco:DateTime>
+                  </cit:date>
+                  <cit:dateType>
+                    <cit:CI_DateTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#CI_DateTypeCode";
 codeListValue="creation" codeSpace="eng">Creation</cit:CI_DateTypeCode>
+                  </cit:dateType>
+                </cit:CI_Date>
+              </cit:date>
+              <cit:citedResponsibleParty>
+                <cit:CI_Responsibility>
+                  <cit:role>
+                    <cit:CI_RoleCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#CI_RoleCode";
 codeListValue="publisher" codeSpace="eng">Publisher</cit:CI_RoleCode>
+                  </cit:role>
+                  <cit:party>
+                    <cit:CI_Organisation>
+                      <cit:name>
+                        <gco:CharacterString>Atlantis national mapping 
agency</gco:CharacterString>
+                      </cit:name>
+                    </cit:CI_Organisation>
+                  </cit:party>
+                </cit:CI_Responsibility>
+              </cit:citedResponsibleParty>
+            </cit:CI_Citation>
+          </mcc:authority>
+          <mcc:code>
+            <gco:CharacterString>AG9000</gco:CharacterString>
+          </mcc:code>
+          <mcc:codeSpace>
+            <gco:CharacterString>rs.id.ns</gco:CharacterString>
+          </mcc:codeSpace>
+          <mcc:version>
+            <gco:CharacterString>1.0</gco:CharacterString>
+          </mcc:version>
+          <mcc:description>
+            <gco:CharacterString>An imaginary reference 
system.</gco:CharacterString>
+          </mcc:description>
+        </mcc:MD_Identifier>
+      </mrs:referenceSystemIdentifier>
+    </mrs:MD_ReferenceSystem>
+  </mdb:referenceSystemInfo>
+  <mdb:metadataExtensionInfo>
+    <mex:MD_MetadataExtensionInformation>
+      <mex:extensionOnLineResource xlink:href="#timaeus"/>
+      <mex:extendedElementInformation>
+        <mex:MD_ExtendedElementInformation>
+          <mex:name>
+            <gco:CharacterString>ExtendedElementName</gco:CharacterString>
+          </mex:name>
+          <mex:definition>
+            <gco:CharacterString>An extended element not included in the 
standard.</gco:CharacterString>
+          </mex:definition>
+          <mex:obligation>
+            <mex:MD_ObligationCode>conditional</mex:MD_ObligationCode>
+          </mex:obligation>
+          <mex:condition>
+            <gco:CharacterString>Presents in “Imaginary work” 
profile.</gco:CharacterString>
+          </mex:condition>
+          <mex:dataType>
+            <mex:MD_DatatypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_DatatypeCode";
 codeListValue="metaClass">Meta class</mex:MD_DatatypeCode>
+          </mex:dataType>
+          <mex:maximumOccurrence>
+            <gco:Integer>3</gco:Integer>
+          </mex:maximumOccurrence>
+          <mex:domainValue>
+            <gco:CharacterString>Alpha, beta or gamma.</gco:CharacterString>
+          </mex:domainValue>
+          <mex:parentEntity>
+            <gco:CharacterString>VirtualObject</gco:CharacterString>
+          </mex:parentEntity>
+          <mex:rule>
+            <gco:CharacterString>Element exists in cited 
resource.</gco:CharacterString>
+          </mex:rule>
+          <mex:rationale>
+            <gco:CharacterString>For testing extended 
elements.</gco:CharacterString>
+          </mex:rationale>
+        </mex:MD_ExtendedElementInformation>
+      </mex:extendedElementInformation>
+    </mex:MD_MetadataExtensionInformation>
+  </mdb:metadataExtensionInfo>
+  <mdb:identificationInfo>
+    <mri:MD_DataIdentification>
+      <mri:citation>
+        <cit:CI_Citation id="lost-island">
+          <cit:title>
+            <gco:CharacterString>A lost island</gco:CharacterString>
+          </cit:title>
+          <cit:alternateTitle>
+            <gco:CharacterString>Island lost again</gco:CharacterString>
+          </cit:alternateTitle>
+          <cit:alternateTitle>
+            <gcx:Anchor xlink:href="http://map-example.com";>Map 
example</gcx:Anchor>
+          </cit:alternateTitle>
+          <cit:date>
+            <cit:CI_Date>
+              <cit:date>
+                <gco:Date>2018-04-09</gco:Date>
+              </cit:date>
+              <cit:dateType>
+                <cit:CI_DateTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#CI_DateTypeCode";
 codeListValue="creation" codeSpace="eng">Creation</cit:CI_DateTypeCode>
+              </cit:dateType>
+            </cit:CI_Date>
+          </cit:date>
+          <cit:edition>
+            <gco:CharacterString>First edition</gco:CharacterString>
+          </cit:edition>
+          <cit:editionDate>
+            <gco:Date>2018-04-10</gco:Date>
+          </cit:editionDate>
+        </cit:CI_Citation>
+      </mri:citation>
+      <mri:abstract xsi:type="lan:PT_FreeText_PropertyType">
+        <gco:CharacterString>Metadata for an imaginary 
map.</gco:CharacterString>
+        <lan:PT_FreeText>
+          <lan:textGroup>
+            <lan:LocalisedCharacterString locale="#locale-eng">Metadata for an 
imaginary map.</lan:LocalisedCharacterString>
+          </lan:textGroup>
+          <lan:textGroup>
+            <lan:LocalisedCharacterString locale="#locale-fra">Méta-données 
pour une carte imaginaire.</lan:LocalisedCharacterString>
+          </lan:textGroup>
+        </lan:PT_FreeText>
+      </mri:abstract>
+      <mri:purpose>
+        <gco:CharacterString>For XML (un)marshalling 
tests.</gco:CharacterString>
+      </mri:purpose>
+      <mri:status>
+        <mcc:MD_ProgressCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_ProgressCode";
 codeListValue="historicalArchive" codeSpace="eng">Historical 
archive</mcc:MD_ProgressCode>
+      </mri:status>
+      <mri:spatialRepresentationType>
+        <mcc:MD_SpatialRepresentationTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_SpatialRepresentationTypeCode";
 codeListValue="grid">Grid</mcc:MD_SpatialRepresentationTypeCode>
+      </mri:spatialRepresentationType>
+      <mri:spatialResolution>
+        <mri:MD_Resolution>
+          <mri:distance>
+            <gco:Distance 
uom="http://schemas.opengis.net/iso/19139/20070417/resources/uom/gmxUom.xml#xpointer(//*[@gml:id='m'])">56777.0</gco:Distance>
+          </mri:distance>
+        </mri:MD_Resolution>
+      </mri:spatialResolution>
+      <mri:topicCategory>
+        <mri:MD_TopicCategoryCode>oceans</mri:MD_TopicCategoryCode>
+      </mri:topicCategory>
+      <mri:topicCategory>
+        <mri:MD_TopicCategoryCode>society</mri:MD_TopicCategoryCode>
+      </mri:topicCategory>
+      <mri:extent>
+        <gex:EX_Extent id="azores">
+          <gex:description>
+            <gco:CharacterString>Azores</gco:CharacterString>
+          </gex:description>
+          <gex:geographicElement>
+            <gex:EX_GeographicBoundingBox>
+              <gex:extentTypeCode>
+                <gco:Boolean>true</gco:Boolean>
+              </gex:extentTypeCode>
+              <gex:westBoundLongitude>
+                <gco:Decimal>-24.5</gco:Decimal>
+              </gex:westBoundLongitude>
+              <gex:eastBoundLongitude>
+                <gco:Decimal>-32.0</gco:Decimal>
+              </gex:eastBoundLongitude>
+              <gex:southBoundLatitude>
+                <gco:Decimal>36.75</gco:Decimal>
+              </gex:southBoundLatitude>
+              <gex:northBoundLatitude>
+                <gco:Decimal>40.0</gco:Decimal>
+              </gex:northBoundLatitude>
+            </gex:EX_GeographicBoundingBox>
+          </gex:geographicElement>
+          <gex:temporalElement>
+            <gex:EX_TemporalExtent/>
+          </gex:temporalElement>
+        </gex:EX_Extent>
+      </mri:extent>
+      <mri:resourceMaintenance>
+        <mmi:MD_MaintenanceInformation id="not-planned">
+          <mmi:maintenanceAndUpdateFrequency>
+            <mmi:MD_MaintenanceFrequencyCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_MaintenanceFrequencyCode";
 codeListValue="notPlanned" codeSpace="eng">Not 
planned</mmi:MD_MaintenanceFrequencyCode>
+          </mmi:maintenanceAndUpdateFrequency>
+          <mmi:maintenanceDate>
+            <cit:CI_Date>
+              <cit:date>
+                <gco:Date>3000-01-01</gco:Date>
+              </cit:date>
+              <cit:dateType>
+                <cit:CI_DateTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#CI_DateTypeCode";
 codeListValue="revision" codeSpace="eng">Revision</cit:CI_DateTypeCode>
+              </cit:dateType>
+            </cit:CI_Date>
+          </mmi:maintenanceDate>
+          <mmi:maintenanceScope>
+            <mcc:MD_Scope>
+              <mcc:level>
+                <mcc:MD_ScopeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_ScopeCode";
 codeListValue="model" codeSpace="eng">Model</mcc:MD_ScopeCode>
+              </mcc:level>
+              <mcc:levelDescription>
+                <mcc:MD_ScopeDescription>
+                  <mcc:dataset>
+                    <gco:CharacterString>Imaginary map</gco:CharacterString>
+                  </mcc:dataset>
+                </mcc:MD_ScopeDescription>
+              </mcc:levelDescription>
+            </mcc:MD_Scope>
+          </mmi:maintenanceScope>
+        </mmi:MD_MaintenanceInformation>
+      </mri:resourceMaintenance>
+      <mri:resourceFormat>
+        <mrd:MD_Format>
+          <mrd:amendmentNumber>
+            <gco:CharacterString>Second edition</gco:CharacterString>
+          </mrd:amendmentNumber>
+          <mrd:formatSpecificationCitation>
+            <cit:CI_Citation>
+              <cit:title>
+                <gco:CharacterString>Portable Network 
Graphics</gco:CharacterString>
+              </cit:title>
+              <cit:alternateTitle>
+                <gco:CharacterString>PNG</gco:CharacterString>
+              </cit:alternateTitle>
+              <cit:edition>
+                <gco:CharacterString>November 2003</gco:CharacterString>
+              </cit:edition>
+            </cit:CI_Citation>
+          </mrd:formatSpecificationCitation>
+          <mrd:fileDecompressionTechnique>
+            <gco:CharacterString>L77 / Huffman coding</gco:CharacterString>
+          </mrd:fileDecompressionTechnique>
+        </mrd:MD_Format>
+      </mri:resourceFormat>
+      <mri:descriptiveKeywords>
+        <mri:MD_Keywords id="greek-elements">
+          <mri:keyword>
+            <gco:CharacterString>Water</gco:CharacterString>
+          </mri:keyword>
+          <mri:keyword>
+            <gco:CharacterString>Aether</gco:CharacterString>
+          </mri:keyword>
+          <mri:type>
+            <mri:MD_KeywordTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_KeywordTypeCode";
 codeListValue="theme" codeSpace="eng">Theme</mri:MD_KeywordTypeCode>
+          </mri:type>
+          <mri:thesaurusName>
+            <cit:CI_Citation>
+              <cit:title>
+                <gco:CharacterString>Plato's dialogues</gco:CharacterString>
+              </cit:title>
+            </cit:CI_Citation>
+          </mri:thesaurusName>
+          <mri:keywordClass>
+            <mri:MD_KeywordClass>
+              <mri:className>
+                <gco:CharacterString>Greek elements</gco:CharacterString>
+              </mri:className>
+            </mri:MD_KeywordClass>
+          </mri:keywordClass>
+        </mri:MD_Keywords>
+      </mri:descriptiveKeywords>
+      <mri:resourceSpecificUsage>
+        <mri:MD_Usage>
+          <mri:specificUsage>
+            <gco:CharacterString>For testing purpose 
only.</gco:CharacterString>
+          </mri:specificUsage>
+          <mri:usageDateTime>
+            <gco:DateTime>2018-04-10T14:00:00+02:00</gco:DateTime>
+          </mri:usageDateTime>
+          <mri:userDeterminedLimitations>
+            <gco:CharacterString>Not to be used outside MarshallingTest.java 
test file.</gco:CharacterString>
+          </mri:userDeterminedLimitations>
+          <mri:response>
+            <gco:CharacterString>Random elements</gco:CharacterString>
+          </mri:response>
+        </mri:MD_Usage>
+      </mri:resourceSpecificUsage>
+      <mri:resourceConstraints>
+        <mco:MD_Constraints id="public">
+          <mco:useLimitation>
+            <gco:CharacterString>Not for navigation.</gco:CharacterString>
+          </mco:useLimitation>
+          <mco:constraintApplicationScope>
+            <mcc:MD_Scope>
+              <mcc:level>
+                <mcc:MD_ScopeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_ScopeCode";
 codeListValue="document" codeSpace="eng">Document</mcc:MD_ScopeCode>
+              </mcc:level>
+            </mcc:MD_Scope>
+          </mco:constraintApplicationScope>
+          <mco:graphic>
+            <mcc:MD_BrowseGraphic>
+              <mcc:fileName>
+                <gcx:FileName src="ocean.png">ocean.png</gcx:FileName>
+              </mcc:fileName>
+              <mcc:fileDescription>
+                <gco:CharacterString>Somewhere in the Atlantic 
ocean</gco:CharacterString>
+              </mcc:fileDescription>
+              <mcc:fileType>
+                <gcx:MimeFileType type="PNG image">PNG image</gcx:MimeFileType>
+              </mcc:fileType>
+              <mcc:linkage>
+                <cit:CI_OnlineResource/>
+              </mcc:linkage>
+              <mcc:imageConstraints>
+                <mco:MD_Constraints/>
+              </mcc:imageConstraints>
+            </mcc:MD_BrowseGraphic>
+          </mco:graphic>
+          <mco:releasability>
+            <mco:MD_Releasability>
+              <mco:statement>
+                <gco:CharacterString>Public domain</gco:CharacterString>
+              </mco:statement>
+            </mco:MD_Releasability>
+          </mco:releasability>
+        </mco:MD_Constraints>
+      </mri:resourceConstraints>
+      <mri:associatedResource>
+        <mri:MD_AssociatedResource id="dependency">
+          <mri:associationType>
+            <mri:DS_AssociationTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#DS_AssociationTypeCode";
 codeListValue="dependency" 
codeSpace="eng">Dependency</mri:DS_AssociationTypeCode>
+          </mri:associationType>
+          <mri:initiativeType>
+            <mri:DS_InitiativeTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#DS_InitiativeTypeCode";
 codeListValue="experiment">Experiment</mri:DS_InitiativeTypeCode>
+          </mri:initiativeType>
+        </mri:MD_AssociatedResource>
+      </mri:associatedResource>
+      <mri:defaultLocale>
+        <lan:PT_Locale>
+          <lan:language>
+            <lan:LanguageCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#LanguageCode";
 codeListValue="eng" codeSpace="eng">English</lan:LanguageCode>
+          </lan:language>
+          <lan:characterEncoding>
+            <lan:MD_CharacterSetCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_CharacterSetCode";
 codeListValue="utf8" codeSpace="eng">UTF-8</lan:MD_CharacterSetCode>
+          </lan:characterEncoding>
+        </lan:PT_Locale>
+      </mri:defaultLocale>
+      <mri:otherLocale>
+        <lan:PT_Locale>
+          <lan:language>
+            <lan:LanguageCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#LanguageCode";
 codeListValue="fra" codeSpace="eng">French</lan:LanguageCode>
+          </lan:language>
+          <lan:country>
+            <lan:CountryCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#Country";
 codeListValue="CA" codeSpace="eng">Canada</lan:CountryCode>
+          </lan:country>
+          <lan:characterEncoding>
+            <lan:MD_CharacterSetCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_CharacterSetCode";
 codeListValue="utf8" codeSpace="eng">UTF-8</lan:MD_CharacterSetCode>
+          </lan:characterEncoding>
+        </lan:PT_Locale>
+      </mri:otherLocale>
+      <mri:environmentDescription>
+        <gco:CharacterString>High humidity.</gco:CharacterString>
+      </mri:environmentDescription>
+      <mri:supplementalInformation>
+        <gco:CharacterString>High water pressure.</gco:CharacterString>
+      </mri:supplementalInformation>
+    </mri:MD_DataIdentification>
+  </mdb:identificationInfo>
+  <mdb:identificationInfo>
+    <srv:SV_ServiceIdentification>
+      <mri:citation xlink:href="#lost-island"/>
+      <mri:abstract>
+        <gco:CharacterString>An inspiration for story 
tellers.</gco:CharacterString>
+      </mri:abstract>
+      <mri:extent xlink:href="#azores"/>
+      <mri:resourceMaintenance xlink:href="#not-planned"/>
+      <mri:descriptiveKeywords xlink:href="#greek-elements"/>
+      <mri:resourceConstraints xlink:href="#public"/>
+      <mri:associatedResource xlink:href="#dependency"/>
+      <srv:serviceTypeVersion>
+        <gco:CharacterString>Version 1000+</gco:CharacterString>
+      </srv:serviceTypeVersion>
+      <srv:couplingType>
+        <srv:SV_CouplingType 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#SV_CouplingType";
 codeListValue="loose" codeSpace="eng">Loose</srv:SV_CouplingType>
+      </srv:couplingType>
+      <srv:coupledResource>
+        <srv:SV_CoupledResource/>
+      </srv:coupledResource>
+      <srv:containsOperations>
+        <srv:SV_OperationMetadata>
+          <srv:operationName>
+            <gco:CharacterString>Authoring</gco:CharacterString>
+          </srv:operationName>
+          <srv:distributedComputingPlatform>
+            <srv:DCPList 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#DCPList";
 codeListValue="JAVA" codeSpace="eng">Java</srv:DCPList>
+          </srv:distributedComputingPlatform>
+          <srv:operationDescription>
+            <gco:CharacterString>Write a book.</gco:CharacterString>
+          </srv:operationDescription>
+          <srv:invocationName>
+            <gco:CharacterString>someMethodName</gco:CharacterString>
+          </srv:invocationName>
+        </srv:SV_OperationMetadata>
+      </srv:containsOperations>
+      <srv:operatesOn>
+        <mri:MD_DataIdentification>
+          <mri:citation xlink:href="#lost-island"/>
+          <mri:abstract xsi:type="lan:PT_FreeText_PropertyType">
+            <gco:CharacterString>Metadata for an imaginary 
map.</gco:CharacterString>
+            <lan:PT_FreeText>
+              <lan:textGroup>
+                <lan:LocalisedCharacterString locale="#locale-eng">Metadata 
for an imaginary map.</lan:LocalisedCharacterString>
+              </lan:textGroup>
+              <lan:textGroup>
+                <lan:LocalisedCharacterString 
locale="#locale-fra">Méta-données pour une carte 
imaginaire.</lan:LocalisedCharacterString>
+              </lan:textGroup>
+            </lan:PT_FreeText>
+          </mri:abstract>
+          <mri:purpose>
+            <gco:CharacterString>For XML (un)marshalling 
tests.</gco:CharacterString>
+          </mri:purpose>
+          <mri:status>
+            <mcc:MD_ProgressCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_ProgressCode";
 codeListValue="historicalArchive" codeSpace="eng">Historical 
archive</mcc:MD_ProgressCode>
+          </mri:status>
+          <mri:spatialRepresentationType>
+            <mcc:MD_SpatialRepresentationTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_SpatialRepresentationTypeCode";
 codeListValue="grid">Grid</mcc:MD_SpatialRepresentationTypeCode>
+          </mri:spatialRepresentationType>
+          <mri:spatialResolution>
+            <mri:MD_Resolution>
+              <mri:distance>
+                <gco:Distance 
uom="http://schemas.opengis.net/iso/19139/20070417/resources/uom/gmxUom.xml#xpointer(//*[@gml:id='m'])">56777.0</gco:Distance>
+              </mri:distance>
+            </mri:MD_Resolution>
+          </mri:spatialResolution>
+          <mri:topicCategory>
+            <mri:MD_TopicCategoryCode>oceans</mri:MD_TopicCategoryCode>
+          </mri:topicCategory>
+          <mri:topicCategory>
+            <mri:MD_TopicCategoryCode>society</mri:MD_TopicCategoryCode>
+          </mri:topicCategory>
+          <mri:extent xlink:href="#azores"/>
+          <mri:resourceMaintenance xlink:href="#not-planned"/>
+          <mri:resourceFormat>
+            <mrd:MD_Format>
+              <mrd:amendmentNumber>
+                <gco:CharacterString>Second edition</gco:CharacterString>
+              </mrd:amendmentNumber>
+              <mrd:formatSpecificationCitation>
+                <cit:CI_Citation>
+                  <cit:title>
+                    <gco:CharacterString>Portable Network 
Graphics</gco:CharacterString>
+                  </cit:title>
+                  <cit:alternateTitle>
+                    <gco:CharacterString>PNG</gco:CharacterString>
+                  </cit:alternateTitle>
+                  <cit:edition>
+                    <gco:CharacterString>November 2003</gco:CharacterString>
+                  </cit:edition>
+                </cit:CI_Citation>
+              </mrd:formatSpecificationCitation>
+              <mrd:fileDecompressionTechnique>
+                <gco:CharacterString>L77 / Huffman coding</gco:CharacterString>
+              </mrd:fileDecompressionTechnique>
+            </mrd:MD_Format>
+          </mri:resourceFormat>
+          <mri:descriptiveKeywords xlink:href="#greek-elements"/>
+          <mri:resourceSpecificUsage>
+            <mri:MD_Usage>
+              <mri:specificUsage>
+                <gco:CharacterString>For testing purpose 
only.</gco:CharacterString>
+              </mri:specificUsage>
+              <mri:usageDateTime>
+                <gco:DateTime>2018-04-10T14:00:00+02:00</gco:DateTime>
+              </mri:usageDateTime>
+              <mri:userDeterminedLimitations>
+                <gco:CharacterString>Not to be used outside 
MarshallingTest.java test file.</gco:CharacterString>
+              </mri:userDeterminedLimitations>
+              <mri:response>
+                <gco:CharacterString>Random elements</gco:CharacterString>
+              </mri:response>
+            </mri:MD_Usage>
+          </mri:resourceSpecificUsage>
+          <mri:resourceConstraints xlink:href="#public"/>
+          <mri:associatedResource xlink:href="#dependency"/>
+          <mri:defaultLocale>
+            <lan:PT_Locale>
+              <lan:language>
+                <lan:LanguageCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#LanguageCode";
 codeListValue="eng" codeSpace="eng">English</lan:LanguageCode>
+              </lan:language>
+              <lan:characterEncoding>
+                <lan:MD_CharacterSetCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_CharacterSetCode";
 codeListValue="utf8" codeSpace="eng">UTF-8</lan:MD_CharacterSetCode>
+              </lan:characterEncoding>
+            </lan:PT_Locale>
+          </mri:defaultLocale>
+          <mri:otherLocale>
+            <lan:PT_Locale>
+              <lan:language>
+                <lan:LanguageCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#LanguageCode";
 codeListValue="fra" codeSpace="eng">French</lan:LanguageCode>
+              </lan:language>
+              <lan:country>
+                <lan:CountryCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#Country";
 codeListValue="CA" codeSpace="eng">Canada</lan:CountryCode>
+              </lan:country>
+              <lan:characterEncoding>
+                <lan:MD_CharacterSetCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_CharacterSetCode";
 codeListValue="utf8" codeSpace="eng">UTF-8</lan:MD_CharacterSetCode>
+              </lan:characterEncoding>
+            </lan:PT_Locale>
+          </mri:otherLocale>
+          <mri:environmentDescription>
+            <gco:CharacterString>High humidity.</gco:CharacterString>
+          </mri:environmentDescription>
+          <mri:supplementalInformation>
+            <gco:CharacterString>High water pressure.</gco:CharacterString>
+          </mri:supplementalInformation>
+        </mri:MD_DataIdentification>
+      </srv:operatesOn>
+    </srv:SV_ServiceIdentification>
+  </mdb:identificationInfo>
+  <mdb:contentInfo>
+    <mrc:MD_CoverageDescription>
+      <mrc:attributeDescription>
+        <gco:RecordType/>
+      </mrc:attributeDescription>
+      <mrc:attributeGroup>
+        <mrc:MD_AttributeGroup>
+          <mrc:contentType>
+            <mrc:MD_CoverageContentTypeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_CoverageContentTypeCode";
 codeListValue="auxillaryInformation" codeSpace="eng">Auxilliary 
information</mrc:MD_CoverageContentTypeCode>
+          </mrc:contentType>
+          <mrc:attribute>
+            <mrc:MD_RangeDimension>
+              <mrc:sequenceIdentifier>
+                <gco:MemberName>
+                  <gco:aName>
+                    <gco:CharacterString>42</gco:CharacterString>
+                  </gco:aName>
+                  <gco:attributeType>
+                    <gco:TypeName>
+                      <gco:aName>
+                        <gco:CharacterString>Integer</gco:CharacterString>
+                      </gco:aName>
+                    </gco:TypeName>
+                  </gco:attributeType>
+                </gco:MemberName>
+              </mrc:sequenceIdentifier>
+              <mrc:description>
+                <gco:CharacterString>Population density</gco:CharacterString>
+              </mrc:description>
+              <mrc:name>
+                <mcc:MD_Identifier/>
+              </mrc:name>
+            </mrc:MD_RangeDimension>
+          </mrc:attribute>
+          <mrc:attribute>
+            <mrc:MD_SampleDimension>
+              <mrc:description>
+                <gco:CharacterString>Temperature</gco:CharacterString>
+              </mrc:description>
+              <mrc:maxValue>
+                <gco:Real>22.22</gco:Real>
+              </mrc:maxValue>
+              <mrc:minValue>
+                <gco:Real>11.11</gco:Real>
+              </mrc:minValue>
+              <mrc:units>°C</mrc:units>
+              <mrc:scaleFactor>
+                <gco:Real>1.5</gco:Real>
+              </mrc:scaleFactor>
+            </mrc:MD_SampleDimension>
+          </mrc:attribute>
+        </mrc:MD_AttributeGroup>
+      </mrc:attributeGroup>
+    </mrc:MD_CoverageDescription>
+  </mdb:contentInfo>
+  <mdb:contentInfo>
+    <mrc:MD_FeatureCatalogueDescription>
+      <mrc:complianceCode>
+        <gco:Boolean>true</gco:Boolean>
+      </mrc:complianceCode>
+      <mrc:includedWithDataset>
+        <gco:Boolean>true</gco:Boolean>
+      </mrc:includedWithDataset>
+    </mrc:MD_FeatureCatalogueDescription>
+  </mdb:contentInfo>
+  <mdb:metadataScope>
+    <mdb:MD_MetadataScope>
+      <mdb:resourceScope>
+        <mcc:MD_ScopeCode 
codeList="http://standards.iso.org/iso/19115/resources/Codelist/cat/codelists.xml#MD_ScopeCode";
 codeListValue="dataset" codeSpace="eng">Dataset</mcc:MD_ScopeCode>
+      </mdb:resourceScope>
+      <mdb:name>
+        <gco:CharacterString>Metadata for an imaginary data 
set</gco:CharacterString>
+      </mdb:name>
+    </mdb:MD_MetadataScope>
+  </mdb:metadataScope>
+</mdb:MD_Metadata>


Reply via email to