Software Archive
Read-only legacy content
17061 Discussions

Using XML files

Deleted_U_Intel
Employee
560 Views
We have Fortran optimization code currently tied into manufacturing systems via custom flat files. As part of our modernization of the system we want to be able to optionally also access relational databases (can do with f90sql) and possibly XML files.

Does anyone have any idea how to implement XML, specifically reading the files? Writing should be more straight-forward.

The only way I can think of is to use C++ or VB to parse the XML and pass a data structure to the legacy Fortran. If there is some package that can hide the details and eliminate another language, that would be great.

Thanks.
0 Kudos
1 Reply
Intel_C_Intel
Employee
560 Views
If it were me, I wouldn't parse XML myself, but instead use the MSXML parser. Whether to use DOM or SAX, or whether to use VB, MSVC++, or CVF as the driver would depend on what I was trying to do. There's lots of ways to skin the XML cat. :-) If I had free time, I'd port one of the MS XML samples, say SAX2 Jumpstart, to CVF. But the list of things I'd do given the time just keeps growing. :-)

-JT
0 Kudos
Reply