In my answer to another post in SO (here: http://stackoverflow.com/questions/1948552/sharepoint-2007-how-to-check-if-a-folder-exists-in-a-document-library/2005855#2005855) I had to parse an XML document with structure:
D:multistatus
|--D:response
|----D:propstat
|-------D:prop
|----------D:displayname
|----------D:isFolder
Is it possible to construct an XPath statement that selects a set of such D:response
elements that contain D:displayname
equal to "someName"
and D:isFolder
is "t"
?
I know how to do it if I select all D:response
elements and then loop through the result set, but I believe XPath is powerful enough to do that in more delicate way.