XML generation and validation of HDF5

Hi,

I've been looking at the HDF5 XML information here http://www.hdfgroup.org/HDF5/XML/design-notes.html and am interested in use cases 2.4 and 2.7 regarding using the HDF5 XML DTD for the purposes of describing an HDF5 file format. In particular I want to be able to do things like define file templates in XML, generate HDF5 files from those templates, and to validate files I create or receive against a versioned XML "schema" that describes what the HDF5 files should contain. I see that h5dump can output an XML description of the file, but how can I check another file against that description or generate a file from that description?

Does anyone have any experience with this sort of thing or suggestions for alternatives? Coming up with some template files of my own and a validation utility is an option, but I am wondering if there are already some standard solutions for this that I can reuse?

Thanks,

Dan Tetlow
Software Engineer
[cid:AE84B080-CC47-45D1-A399-51409482DECF]
Tel: +44 (0)1305 367106
Email: daniel.tetlow@optasense.com<mailto:daniel.tetlow@optasense.com>

www.OptaSense.com<http://www.optasense.com/&gt;

Please consider the environment before printing this email.

This email and any attachments to it may be confidential and are intended solely for the use of the intended recipient. If you believe you have received this email in error, you must neither take any action based upon its contents, nor copy or show it to anyone. Please also contact the sender accordingly. OptaSense Ltd may monitor email traffic data and also the content of email for the purposes of security. OptaSense Ltd (Registered in England & Wales: Company Number: 06508676 ) Registered office: Cody Technology Park, Ively Road, Farnborough, Hampshire, GU14 0LX http://www.optasense.com<http://www.optasense.com/&gt;

Daniel, how are you? There hasn't been much activity in XML space for
the situations you're referring to. However, there's been quite a bit of activity
in JSON space, e.g., HDF5/JSON — HDF5/JSON v1.2-dev
The tool stack around it is being developed in related projects,
such as the HDF5/REST server and the HDF5 Product Designer.
(Stay posted for announcements...)
This is not to say that similar results couldn't be had in XML space.

My personal view is that the idea of leveraging XML schema
(or more relaxed cousins) as some kind of enforcing mechanism doesn't
bear fruit beyond rather simple scenarios. The underlying problem
"transcends" the syntactic quibbles of XML, JSON & Co.

Best, G.

···

From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of Daniel Tetlow
Sent: Tuesday, February 10, 2015 4:42 AM
To: hdf-forum@lists.hdfgroup.org
Subject: [Hdf-forum] XML generation and validation of HDF5

Hi,

I've been looking at the HDF5 XML information here http://www.hdfgroup.org/HDF5/XML/design-notes.html and am interested in use cases 2.4 and 2.7 regarding using the HDF5 XML DTD for the purposes of describing an HDF5 file format. In particular I want to be able to do things like define file templates in XML, generate HDF5 files from those templates, and to validate files I create or receive against a versioned XML "schema" that describes what the HDF5 files should contain. I see that h5dump can output an XML description of the file, but how can I check another file against that description or generate a file from that description?

Does anyone have any experience with this sort of thing or suggestions for alternatives? Coming up with some template files of my own and a validation utility is an option, but I am wondering if there are already some standard solutions for this that I can reuse?

Thanks,

Dan Tetlow
Software Engineer
[cid:AE84B080-CC47-45D1-A399-51409482DECF]
Tel: +44 (0)1305 367106
Email: daniel.tetlow@optasense.com<mailto:daniel.tetlow@optasense.com>

www.OptaSense.com<http://www.optasense.com/&gt;

Please consider the environment before printing this email.

This email and any attachments to it may be confidential and are intended solely for the use of the intended recipient. If you believe you have received this email in error, you must neither take any action based upon its contents, nor copy or show it to anyone. Please also contact the sender accordingly. OptaSense Ltd may monitor email traffic data and also the content of email for the purposes of security. OptaSense Ltd (Registered in England & Wales: Company Number: 06508676 ) Registered office: Cody Technology Park, Ively Road, Farnborough, Hampshire, GU14 0LX http://www.optasense.com<http://www.optasense.com/&gt;