XML [message #23023] |
Thu, 14 December 2000 09:01  |
Mirko Vukovic
Messages: 124 Registered: January 1996
|
Senior Member |
|
|
Here is a zany problem:
I'd like to transfer some data from Excel to a text file. But to give
it some structure (i.e. ``this is data from exp 5, where param 1 is foo1
and param 2 is foo2...''), I'd need to define control structures, and
then write a program to digest them.
So the thought came to use XML conventions to define the control
structures. After all, the thing is extensible, and I can define
whatever I please, as long as I know what to do with it later on.
Is there a program that I would be able to adapt to read the XML codes?
I'd hate to start from scratch if something is available.
The other thought is to use the astronomy database programs and put the
data in there, but I need to think a bit whether it can fit my needs.
Any thoughts?
Mirko
Sent via Deja.com
http://www.deja.com/
|
|
|
Re: xml [message #67658 is a reply to message #23023] |
Tue, 18 August 2009 12:41  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
David DeGraff wrote:
> From what I've been able to see, it's easier to find XML readers than
> NetCDF readers, so I'd like to write my data files in this format.
> When I search IDL XML, it seems most of the hits are about a different
> IDL. Does anyone have any guides to writing xml files in IDL?
>
> Thanks
> David
The online help for the XML DOM parser has a very simple example of
using it to write output:
http://idlastro.gsfc.nasa.gov/idl_html_help/Using_the_XML_DO M_Classes.html
In my experience, *writing* XML is the easy part, PRINTF usually works fine.
Mike
--
www.michaelgalloy.com
Associate Research Scientist
Tech-X Corporation
|
|
|