cansas1d binding Fortran: Difference between revisions

From canSAS
No edit summary
No edit summary
Line 1: Line 1:
The development of the FORTRAN language, so beloved of scientists, pre-dates the development of XML.  And it shows.  FORTRAN is not a language that manipulates strings with ease, and this makes parsing XML decidely awkward.  So unless you ''really'' have to use FORTRAN, you are probably better off with C/C++ (or something else more 'modern'), e.g. Daniel Veillard's LIBXML2 at http://xmlsoft.org/[http://xmlsoft.org/].
The development of the FORTRAN language, so beloved of scientists, pre-dates the development of XML.  And it shows.  FORTRAN is not a language that manipulates strings with ease, and this makes parsing XML decidely awkward.  So unless you ''really'' have to use FORTRAN, you are probably better off with C/C++ (or something else more 'modern'), e.g. Daniel Veillard's LIBXML2 at http://xmlsoft.org/.


If you have to use a dialect earlier than FORTRAN-90 (F90), then the chances are you will have to code your own parser.
If you have to use a dialect earlier than FORTRAN-90 (F90), then the chances are you will have to code your own parser.
Line 8: Line 8:
XMLPARSE - by Arjen Markus at http://xml-fortran.sourceforge.net/
XMLPARSE - by Arjen Markus at http://xml-fortran.sourceforge.net/


FoX - by Toby White & others at http://uszla.me.uk/space/software/FoX/[http://uszla.me.uk/space/software/FoX/]
FoX - by Toby White & others at http://uszla.me.uk/space/software/FoX/


For F95:
For F95:
XML - by Mart Rentmeester at http://nn-online.org/code/xml/[http://nn-online.org/code/xml/]
XML - by Mart Rentmeester at http://nn-online.org/code/xml/

Revision as of 10:41, 19 May 2008

The development of the FORTRAN language, so beloved of scientists, pre-dates the development of XML. And it shows. FORTRAN is not a language that manipulates strings with ease, and this makes parsing XML decidely awkward. So unless you really have to use FORTRAN, you are probably better off with C/C++ (or something else more 'modern'), e.g. Daniel Veillard's LIBXML2 at http://xmlsoft.org/.

If you have to use a dialect earlier than FORTRAN-90 (F90), then the chances are you will have to code your own parser.

For later dialects, there are some SDK's available on the Web:

For F90: XMLPARSE - by Arjen Markus at http://xml-fortran.sourceforge.net/

FoX - by Toby White & others at http://uszla.me.uk/space/software/FoX/

For F95: XML - by Mart Rentmeester at http://nn-online.org/code/xml/