Unfortunately FoX does not have and XPath interface. (I suspect you
have been mislead by the DOM tutorial, which is based on an exercise
from the iFaX course we ran last January. That course did include an
XPath exercise but that was done in python or perl.)
Currently, the easiest way to read an XML document with FoX is to use
a small subset of the DOM functions as illustrated by /examples/
dom_example_2.f90 in the (full) download. XPath would be easer, but
I'm not aware of any implementations of XPath in Fortran.
Cheers,
Andrew
On 28 Jan 2009, at 13:38, cyril giraudon wrote:
> Hi,
>
> I'm looking at Fox in order to read XML data from fortran.
> In some comments, we can read Fox includes an xpath like manner to
> read XML.
>
> What is this way of doing ?
> Is there any documentation about such a capability ?
>
> Thanks a lot,
>
> Cyril.
>
>
>
> _______________________________________________
> FoX mailing list
> F...@lists.uszla.me.uk
> http://www.uszla.me.uk/cgi-bin/mailman/listinfo/fox