Jaxen sure does support the maths functions and the index operators. Though
you're not quite using the correct XPath expression syntax.

See comments intermixed...

----- Original Message -----
From: "George Pieri" <[EMAIL PROTECTED]>
To: "Jaxen-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, November 20, 2001 3:09 PM
Subject: [Jaxen] (no subject)


>
>
> Does JAXEN support math functions in the XPath expression
>
>
> String myXPath="/Accounts/count(Account)" ; // tell me how many account
tags

Should be

count(/Accounts/Account)

> or subelement retrievals
>
>
> String myXPath "/Accounts/Account[0]/@name"  ; Give me the name for the
> first Account

That looks fine. It should find this...

<Accounts>
    <Account name="James"/>
</Accounts>


> I've tried using these expressions with NO luck and have used JDOM
> expressions instead but would like to know if it should be possible.

Could you send us a test case piece of XML and the XPath expression and
we'll try help you out.

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to