Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试比较两个 Document 对象并尝试根据结果进行操作。例如,我将有一个 Document 对象,例如,
<head> <value> </value> </head>
我将与另一个文档对象进行比较,例如,
<head> </head>
如果两个 Document 对象的格式不一样,我想做一些操作。你能帮我解决一下这种情况吗?
谢谢你们
XMLUnit旨在进行这种比较,特别是用于单元测试。但它肯定也可以用于其他用途。