Why not just call Python to parse the XML? That's what we are doing.
It is easy, there is lots of support, and Python is a good language
for parsing. Parsing XML with FORTRAN sounds a bit like developing a
finite element simulation in COBOL. Each language has strengths, so
might was well exploit those strenghts.
-robert
Harry R Millwater writes:
> Mart,
> You are doing the Fortran world a great favor. It irritates me no end to
> not have the same tools available as in other languages. There are XML
> parsers in Java, C, C++, Perl, Python, Ruby, and who knows what other
> languages.
>
> I'd be happy to try out your code. I have a bunch of XML files, source code
> and a DTD to test it with.
>
> -----Original Message-----
> From: Mart Rentmeester [mailto:[log in to unmask]]
> Sent: Wednesday, July 31, 2002 11:10 AM
> To: [log in to unmask]
> Subject: Re: XML parser in Fortran
>
>
> > Does anyone know of FORTRAN source code for parsing XML files?
> > Alternatively, has anyone linked an XML library such as libxml into a
> > FORTRAN program?
>
>
>
>
>
> I am currently writing an XML parser in fortran. In its current
> state it already can (within some limits) parse XML files; either
> generate a DOM-inspired data structure, or pass handles in a
> SAX-inspired way.
>
> Next I need to go through the more obscure parts of the XML
> specification and see what reasonably can be done in fortran.
> And get things more flexible; decent user interface, etc.
>
> Depending on how many features I want to include and the time
> I can spend on it, code can be expected sooner or later.
>
>
>
> Mart Rentmeester,
> [log in to unmask]
>
>
>
>
> >
> > Craig Shirley
> >
> > Desert Research Institute
> > Room 234
> > 755 East Flamingo Road
> > Las Vegas, Nevada, USA 89119
> > Phone: 702.895.0454
> > Fax: 702.895.0427
> >
> > Mark Twain wrote,
> > "Good judgment comes from experience; experience comes from bad judgment."
> > So why waste time making little mistakes?
> >
>
|