Re: [FoX] xpath like or not

11 views
Skip to first unread message

Andrew Walker

unread,
Jan 28, 2009, 11:54:09 AM1/28/09
to fox-d...@googlegroups.com, cyril giraudon
Dear Cyril,

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

cyril giraudon

unread,
Jan 29, 2009, 8:18:09 AM1/29/09
to FoX-discuss
Thanks a lot Andrew.

Regards,

Cyril.
Reply all
Reply to author
Forward
0 new messages