commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Perez Jorge <ape...@ignos.com>
Subject Re: JXPath How To Retrieve an Attribute Value
Date Thu, 27 May 2004 13:26:40 GMT
BERGER ROLAND wrote:

>--- Erhalten von  SYSUEXT.UE05588 +41 51 220 49 56           27.05.04 14.47
>
>Hi all
>
>How can I retreive an Attribut value of an Element with JXPath??
>All I found in the Doc's is how to select Elements with the help of some
>attribut constraints but not the attribute value its self.
>
>Consider the following XML fragment:
>
>....
><Location x="1234567">
>....
></Location>
>
>
>I want to get the value 1234567 and not any childern nested inside.
>  
>
ctx.getValue("Location/@x");

where ctx is a JXPathContext;

>How can I do that?
>
>Thank you
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message