Blog Archive for April 16, 2018

XPath on w3c dom nodes

April 16, 2018

In one of my tests I wanted to parse some XML then use XPATH to find a particular node inside the XML. The code was parsing the XML into a org.dom.w3c.Document instance. I then needed to compare the text values of the nodes with expected values.

This can be done …