Created
July 13, 2012 08:34
-
-
Save mweststrate/3103673 to your computer and use it in GitHub Desktop.
xpath example java 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
//create the xpath | |
String xpath = String.format("//%s[%s/%s[%s = true() or %s = true()]][%s = '%s'][%s = '%s']", | |
Product.entityName, | |
Product.MemberNames.Product_ProductState, ProductState.entityName, | |
ProductState.MemberNames.Published, ProductState.MemberNames.PublishAnyway, | |
Product.MemberNames.Product_Category, category.getGUID(), | |
Product.MemberNames.Name, name | |
); | |
//... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment