Thursday 17 March 2016

Simple Xpath Expression Evaluator

Guys These days I am struggling with simple XPath expression evaluator. I perplexed with many solution suggested in different blogs.

but Finally I end up my own way of simple class will do the work pretty much.

If you provide the expression and Actual xml then it will return you the value of Node/Attribute.

I also added assertXMLEquals  which u can use in your work of testing .

How to use 
 1. XpathEvaluator.assertXMLEquals(expected, expression, xml, "prefix", "https://test.host.com/xsd")

Download from here...