OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Simple XPath question

[ Lists Home | Date Index | Thread Index ]

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/ __________________________________________________




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS