From: "M El number one" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: get xpath(i'am not explain the problem well) Date: Fri, 03 Oct 2003 19:10:44 +0100
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.
_________________________________________________________________
Entra de visita en las decenas de tiendas del nuevo MSN Compras. Compara los precios antes de comprar. http://www.msn.es/compras/