Yossi Dahan [BizTalk]

Google
 

Monday, October 16, 2006

Xpath to select nodes with distinct attribute value

Getting a list of nodes with distinct value in an attribute using xpath (and a valid one for an orchestration's expressoin shape as well...) -

/*[local-name()='MyElement' and namespace-uri()='MyNamespace']/*[not(@MyAttribute=preceding-sibling::*/@MyAttribute)]

3 Comments:

Post a Comment

<< Home