I'm writing some
JUnit tests that will use the XPath API to check to see if the node values for all possible nodes are correct in an XML document. Suppose all of these JUnit tests pass. Would it be reasonable to assume that the XML document was formed correctly? Would it be necessary to write another JUnit
test that validates the XML document against a schema?