ISO generation/validation in Drupal

Events happening in the community are now at Drupal community events on www.drupal.org.
ashepherd's picture

Is anyone generating ISO XML metadata from Drupal? If so, do you have any routines that validate the XML generated? I'm generating ISO 19115-2 and I'm trying to find the best way to validate the XML in Drupal.

Comments

Sorry

w7pagr2rlkeb's picture

Sorry, we don't use ISO XML that at the current time. But I'm very curious to see what responses you receive.

  • Crystal

Hi Adam, We make ISO XML from

eneko1907's picture

Hi Adam,

We make ISO XML from DEIMS, but do not validate the outcome of ISO.

There are two related issues here - the ISO XML schemas (xsd) are still evolving - we actually use ISO extensions 19109 and/or 19110 to describe attribute level information (variables, i.e; columns in a spreadsheet). This technique is still in the long process of ISO approval - and schemas are a separate thing.

As for validation, I would use a service if there is one for the ISO North American Profile, but there is none to my knowledge. Alternatively, if you had a schema, you may investigate the PHP functions to handle XML, particularly the XMLReader class (see http://php.net/manual/en/book.xmlreader.php ) this would have to go in a custom module (xml-validate or so).

Personally, in the absence of a service, I validate offline using a client or XMLSpy or oXygen.

Inigo

Hey folks, Just wanted to

ashepherd's picture

Hey folks, Just wanted to follow up with your suggestions. So, I decided to use PHP's DOMDocument->schemaValidate(), which wasn't working initially for me because I had an older version of libXML on our web server. One I upgraded to libXML 2.8, the schema validation worked against the ISO xsd: http://www.ngdc.noaa.gov/metadata/published/xsd/schema.xsd

I really appreciate everyone's feedback. thanks!

Science Applications

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: