Hello, thanks for your fast answer. The truth is that it does not explain the problem well.
The problem is the following one:
I have a program Javascript that adds listening to events, when an event happens ,I can obtain its properties, for example the id,
which I want soon is to identify the element in which the
event happens, which I want to use for this is xpath in java,
First I want that given a button id,I can obtain xpath of the button.
For example
<body> <p><input type="button" id ="idb1" value="submit1" name="B1"></p> <p><input type="button" id ="idb2" value="submit2" name="B2"></p> </body>
if i want to store (in a variable in a java program) the xpath of the button with id=idb1, is ther any function that allows to obtain xpath given the document xml and the id.
Thank you very much.
From: Christian Sell <[EMAIL PROTECTED]> To: M El number one <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: get the xpath of a tag Date: Fri, 03 Oct 2003 16:39:17 +0200
I know 2 tools that do this graphically: XPathExplorer and TreeBeard, both @sourceforge.
christian
M El number one wrote:Hi my name is Agustín and i want to get the xpath of a tag with an id.
for example if i have a buttom with the id = but1 ; I want to know what is it xpath.
is ther a are any function to do this in xalan.
Thank you very much.
_________________________________________________________________
Agranda cinco veces tu buzón de Hotmail y envía adjuntos de hasta 3 Mb. http://join.msn.com/?pgmarket=es-es
_________________________________________________________________
Dale vida a tu correo. Con MSN 8 podrás incluir fotos y textos increibles. http://join.msn.com/?pgmarket=es-es&XAPID=517&DI=1055