我无法确定,我是否妥善执行这一计划,以验证XML:
XmlOptions xmlOp = new XmlOptions();
xmlOp.setDocumentSourceName("C:/Dir/SubDir/SubDir2/myfile.xsd");
assertTrue(doc.validate(xmlOp));
I want to validate the xml object doc
against the schema File
myfile.xsd.
The assertion is passing but I wanted to make sure that it is passing for the right reason.
增 编