Hello Emmanuel
I just tried the following code with 0.6-jdk8-SNAPSHOT:
DefaultMetadata metadata = new DefaultMetadata();
metadata.setDateStamp(new Date());
System.out.println(XML.marshal(metadata));
and I got (simplified):
<gmd:MD_Metadata>
<gmd:dateStamp>
<gco:DateTime>2015-07-29T17:02:09.546+02:00</gco:DateTime>
</gmd:dateStamp>
</gmd:MD_Metadata>
Is there an other information missing? If the above seems okay, could
you post a code snippet reproducing the problem that you observe?
Thanks,
Martin
Le 29/07/15 15:09, Emmanuel Blondel a écrit :
>
> Hello,
>
> I'm currently using 0.6-jdk7-SNAPSHOT
>
> I'm aware that some changes have been made sometimes ago to implement
> the ISO 19115:2014. As a consequence, the /setDateStamp/ method is now
> deprecated (as other methods suchas /setParentIdentifier/). However,
> for backward compatibility to ISO 19115:2003, i would have expected
> that we can still marshall such elements. Actually it is the case for
> most of them (e.g. /parentIdentifier/), but for some reason, if i set
> use /setDateStamp/, the /dateStamp/ is not marshalled anymore (while
> i specify it in my /DefaultMetadata/) which causes compatibility
> issues with ISO 19115:2003 and INSPIRE validation.
> Could you have a look?
>
> Thanks in advance,
> Emmanuel