Skip to section navigationSkip to content

Open Source Software

Contact Us:

NASA's Goddard Space
Flight Center

Code 504
8800 Greenbelt Road
Greenbelt, MD 20771

E-mail

OSI Certified

The Technology Transfer and Partnerships Office
XML to ODL Converter

A program that translates an XML representation of HDF-EOS ODL metadata back to ODL format.

A. HDF-EOS metadata is internally formatted in ODL (for historical reasons). Recently the DAACs started to distribute it in XML, which works better with current standard tools, but breaks old tools. The DAACs themselves saw a need to regenerate ODL from their XML.

B. The initial translation of ODL->XML loses some information about data types and container types that needs to be regenerated, either by heuristics or explicit look-up-tables.

C. Using expat as its parser, the program walks the XML tree. Branches of the tree are translated to ODL container classes, the type of which is controlled by a look-up-table. Leaves of the tree are rendered as ODL types (string, number, symbol) by attempting to parse them with an ODL data parser.

D. Command-line application: $xml2odl <XMLFILE> [<ODLFILE>]


XML to ODL Converter Goals

This tool was developed as a demonstration of how to work with HDF-EOS data produced by NASA’s EOS program, including the standard products of the EOS Terra, Aqua and Aura missions and other EOSDIS standard products. The development of these tools is not ongoing and this source is offered “as is” with the hope that it may be useful.

Functional Goals

N/A

Evolvability Goals

N/A

Usability Goals

N/A


Software Packages

This software is released under the terms and conditions of the NASA Open Source Agreement (NOSA) Version 1.1 or later.
XML to ODL Converter NOSA

XML to ODL Converter



NASA logo - link to nasa.gov
  • Page Last Updated: February 27, 2015
  • Page Editor: Adil Anis
  • NASA Official: Enidia Santiago-Arce