|
[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Simple XPath question

An alternate solution, if you know for sure that C is the child of B
and B is the child of A,
/A [B/C/@name ="something"]
Note: Not tested
Thanks,
Prakash
Paul Popiel wrote:
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@g...]
Sent: Wednesday, 3 August 2005 11:42 AM
To: Paul Popiel
Cc: xml-dev@l...
Subject: Re: Simple XPath question
On 8/3/05, Paul Popiel <PaulP@a...> 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
|
begin:vcard
fn:Prakash Subramaniam
n:Subramaniam;Prakash
org:Oracle India Private Limited;MDS (MetaDataServices)
adr:;;Lexington Towers;Bangalore;;;India
email;internet:prakash.subramaniam@o...
title:Member Technical Staff
tel;work:+91 80 51085015
x-mozilla-html:TRUE
version:2.1
end:vcard
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
| RSS 2.0 |
 |
| Atom 0.3 |
 |
| |
Stylus Studio has published XML-DEV in RSS and ATOM formats,
enabling users to easily subcribe to the list from their preferred news reader application.
|
Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website.
they were not included by the author in the initial post. To view the content without the Sponsor Links please
click here.
|
|