Altova Mailing List Archives>Archive Index >xml-dev Archive Home >Recent entries >Thread Prev - [xml-dev] Simple XPath question [Thread Next] Re: [xml-dev] Simple XPath questionTo: Paul Popiel <PaulP@--------------.---> Date: 8/3/2005 3:42:00 AM 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
--
"Ultimately, all things are known because you want to believe you know."
- Frank Herbert
__ http://shelter.nu/ __________________________________________________ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
