Skip to content

Instantly share code, notes, and snippets.

@mweststrate
Created July 13, 2012 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mweststrate/3103673 to your computer and use it in GitHub Desktop.
Save mweststrate/3103673 to your computer and use it in GitHub Desktop.
xpath example java 2
//...
//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