From: Toby on
On Mar 28, 9:07 pm, Reinhold Bader <Ba...(a)lrz.de> wrote:
> Toby schrieb:> I'd like to present FoX; a standards-compliant XML toolkit written
> > purely in Fortran 95.
>
> [snip]
>
> In contradiction tohttp://uszla.me.uk/space/software/FoX/compat/, the
> Intel 10.1 compiler on x86_64 (I tried 10.1.008 as well as 10.1.013) fails
> to build the package.
>
> The first error is
>
> ifort -c -g -fpp -I../objs/finclude -DFC_HAVE_FLUSH -DFC_HAVE_ABORT -DFC_ABORT_ARG -DFC_EOR_LF -DRESTRICTED_ASSOCIATED_BUG
> m_common_attrs.F90
> fortcom: Error: m_common_attrs.F90, line 284: This name does not have a type, and must have an explicit type.   [GET_KEY_INDEX]
>      character(len=size(dict%list(get_key_index(dict,key))%d%value)) :: value
>
> My (tentative) opinion is that there is indeed a bug in ifort.

Thanks for this. It is a bug in ifort, but it masked a couple of other
bugs in FoX which ifort picked up.

In any case, I've rewritten the code to work around ifort's bug, and
checked it with Reinhard. The result is an updated version of FoX
(4.0.1), available as before from http://www.uszla.me.uk/FoX/source/

--
Dr. Toby O. H. White
Dept. Earth Sciences,
Downing Street,
Cambridge CB2 3EQ
United Kingdom

Web: http://uszla.me.uk

From: Toby on
On Mar 30, 2:20 pm, Toby <t...(a)uszla.me.uk> wrote:
>
> checked it with Reinhard.

ReinHOLd - sorry!

--
Dr. Toby O. H. White
Dept. Earth Sciences,
Downing Street,
Cambridge CB2 3EQ
United Kingdom
Web: http://uszla.me.uk
From: Arjen Markus on
On 28 mrt, 19:30, Toby <t...(a)uszla.me.uk> wrote:
> I'd like to present FoX; a standards-compliant XML toolkit written
> purely in Fortran 95.
>
> With the public release of version 4.0, FoX now supports the whole of
> XML 1.0 as a
> fully validating parser, tested against the W3C XML testsuite.
>
> FoX also understands all of XML Namespaces, xml:id and xml:base.
>
> It provides both input and output APIs
>
> * the output API is a streaming writer which guarantees the well-
> formedness of all XML output.
> * the input API provides both a SAX-like interface, offering all the
> features of SAX version 2,
> and a full W3C-compliant DOM (tested against the W3C DOM testsuite),
> covering all of Core
> Levels 1, 2, and most of 3.
>
> FoX is completely written in Fortran, avoiding any issues with cross-
> language compatibility,
> and is extensively tested across multiple compilers.
>
> Further details can be found at:http://www.uszla.me.uk/FoX/
>
> The source is BSD-licensed, and is available fromhttp://www.uszla.me.uk/FoX/source/
>
> --
> Dr. Toby O. H. White
> Dept. Earth Sciences,
> Downing Street,
> Cambridge CB2 3EQ
> United Kingdom
>
> Web:http://uszla.me.uk

Good, I have not looked at it yet, but it sounds very nice.

I would like to take this opportunity to inform you about my project
to read
XML files in Fortran - http://xml-fortran.sourceforge.net

I just released version 1.00. While I am not sure it will pass all W3C
tests, the
purpose of the library and auxiliary programs is to provide some
pragmatic tools
to deal with XML files. As such, the project offers four different
methods of
reading XML files:

* Reading the files in much the same way as an ordinary text file -
a stream-oriented method
* Directly reading the contents into a data structure that reflects
the structure of the XML file (via the xmlreader program)
* Constructing a tree of data from the XML file with essentially the
same structure
* Processing the contents using "events", in much the same way as
the original Expat library.

The auxiliary program xmlreader in version 1.00 creates both a reading
and a writing routine
based on an XSD-like description of the file. It does not read actual
XSD files, but the program
xsdconvert help converting such files.

(The project now also contains a reference to FoX)

Regards,

Arjen