The content beneath the language nodes is not necessarily the same.
When switching languages I want to test if the a paralell language node exisist.

Currently I'm doing the following:
- get current path
- replace the language part of path
e.g. replace /en/login to /de/login
- the closest i've found to test the existance of a page is:
XPathNodeIterator i = umbraco.library.GetXmlDocumentByUrl("http://localhost/de/login");

Debugging this shows, that umbraco actually hits the database. This can't be the best way to test the existance of a page.

The problem with the node class, that it can't take XPath queries (and will not give performance)

I've written a dynamic Linq provider that can be used to query the Umbraco XML structure using compiled xslt expressions. I going to be publishing in the next week or so. Let me know if your interested...

i used the business logic, exactly because it doesn't take xpath queries. your link provider sounds very interesting!
–
AyKarsiOct 4 '10 at 7:02

Did you ever publish this?? I really want to get a node via path, as I have a control that needs data from some arbitrary path that have nothing to do with the current page.
–
jimplodeNov 30 '10 at 14:07