You can use parent::* to ge tthe parent path.

http://www.zvon.org/xxl/XPathTutorial/Output/example13.html

But XPath won't give you the actual path (e.g. to put in a property or similar).

Brian

[EMAIL PROTECTED] wrote:

Hello,

With xmltask, is there a way to get a path leading to the node, e.g., applying xmltask to the following document, looking for a node with value f2, and coming up with a/b/e/f ?

<a>

<b>b1

<c>c1

<d>d1</d>

</c>

</b>

<b>b2

<e>c2

<f>f2</f>

</e>

</b>

<a>

Thanks for your help,

Elvira

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
------------------------------------------------------------------------

_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

--
Brian Agnew                  http://www.oopsconsultancy.com
OOPS Consultancy Ltd         brian @ oopsconsultancy.com
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Reply via email to