[
Lists Home |
Date Index |
Thread Index
]
want to get element A not C.
also would prefer to stay away from using .. if possible.
-----Original Message-----
From: Alexander Johannesen [mailto:alexander.johannesen@gmail.com]
Sent: Wednesday, 3 August 2005 11:42 AM
To: Paul Popiel
Cc: xml-dev@lists.xml.org
Subject: Re: [xml-dev] Simple XPath question
On 8/3/05, Paul Popiel <PaulP@advancedengine.com> wrote:
> whats a clean xpath expression to get the element A which has a child
> element C with @name=something
Clean? Hmm. :)
//C[@name='something' and ../../node::name() = 'A']
{untested, of course}
Alex
--
"Ultimately, all things are known because you want to believe you know."
- Frank Herbert
__ http://shelter.nu/ __________________________________________________
**********************************************************************
This email is confidential. If you are not the intended recipient,
you must not copy, distribute, disclose or otherwise use the
information contained in it. If you have received this email in
error, please tell us immediately by return email or by contacting
us on (+61 8) 9209 6900 and delete the document. Email may
be susceptible to data corruption, interception and unauthorised
amendment. Advanced Engine Components Ltd is not
responsible for any changes made to a document other than
those made by Advanced Engine Components Ltd, or for the
effect of the changes on the document's meaning.
You must scan this email and any attachments for viruses.
Advanced Engine Components Ltd accepts no liability for any
loss, damage or consequence, whether caused by our own
negligence or not, resulting directly or indirectly from your
receipt of this email or the use of any attachments.
**********************************************************************
|