Improve transfer of XML metadata to OSDU WPC attributes
As part of interoperability group, it has been identified that some RESQML XML extra metadata should be exposed as part of the WPC data. It may be useful to choose which fields of the WPCs will be populated by the RESQML extra metadata. For example: the XML element
<resqml2:ExtraMetadata xsi:type="resqml2:NameValuePair"> <resqml2:Name xsi:type="xsd:string">osdu/data/ResourceCurationStatus</resqml2:Name> <resqml2:Value xsi:type="xsd:string">PUBLISHED</resqml2:Value> </resqml2:ExtraMetadata>
will be used to fill the { "data": { "ResourceCurationStatus": "PUBLISHED" } }
and the XML element
<resqml2:ExtraMetadata xsi:type="resqml2:NameValuePair"> <resqml2:Name xsi:type="xsd:string">osdu/tags/Mytags</resqml2:Name> <resqml2:Value xsi:type="xsd:string">Myvalues</resqml2:Value> </resqml2:ExtraMetadata>
will be used to fill the { "tags": { "Mytags": "Myvalues" } }