I'm interested in both xpath matching and full document comparisons:
assert_that(mydoc, hasTextAtXPath('/foo/bar', 'text'))
assert_that(mydoc, matchesStructurally('<some_xml/>'))
Does any matcher library exist for this? If not, what is the best place to start with for this type of comparison, so that I can write one of my own?