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)]
/*[local-name()='MyElement' and namespace-uri()='MyNamespace']/*[not(@MyAttribute=preceding-sibling::*/@MyAttribute)]
3 Comments:
slick. perfect. thank you
By
Jeremy, at 02/02/2007, 15:26
Great,
Thank you for this post.
it was exactly what I was looking for.
Matteo
By
Unknown, at 10/11/2008, 13:27
Thank you for this post,
it was exactly what I was looking for.
By
Anonymous, at 10/11/2008, 13:28
Post a Comment
<< Home