3
我有兩個xml配置文件,我只需要比較兩個文件的結構並顯示其差異。 請注意:比較時,應該忽略xml節點中的值。比較xml結構使用Powershell
例如:
XML 1
----
<recipe>
<ingredients>
<ingredient1></ingredient1><ingredient2></ingredient2>
</ingredients>
<description></description>
</recipe>
XML 2
-----
<recipe>
<ingredients>
<ingredient1></ingredient1>
</ingredients>
<description></description>
<images></images>
</recipe>
結果應該是兩個XML文件的差異。
xml1 <ingredient2>
xml2 <images>
非常感謝。
工程太棒了!謝謝。 – jack
很高興它可以幫助你 –