NOAA-PMEL / OAPMetadata

OAP Metadata Definition and Bindings
MIT License
0 stars 1 forks source link

XML files now validate #1

Closed squaregoldfish closed 12 months ago

squaregoldfish commented 12 months ago

Adjustments to the XSD files so that XML files built in the metadata editor can be validated. Note that validated XML files loaded into the online editor will lose information.

One thing I can't figure out: variables of the type xsi:type="co2_socat" require all child elements, even though they're set to minOccurs="0". There's something I don't understand here. The intention is that one of the co2_socat variables contains all the child elements, but not the others. Therefore they should be optional. But as I say, the validator complains about missing child elements.

Used xmllint as validator.

Attached file is a ZIPped XML file that validates against these XSD files.

119920220401.xml.zip