Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Simple XPath question

From: Prakash <prakash.subramaniam@------.--->
To: Paul Popiel <PaulP@--------------.--->
Date: 8/3/2005 6:52:00 AM
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: [xml-dev] 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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent