- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
-JT

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page