compare two xml files with xslt?

前端 未结 3 785
萌比男神i
萌比男神i 2021-02-10 13:12

I have 2 xml files. How can I compare both files are equal or not by using xslt? If not equal means where the changes havebeen occur in the second xml?

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-10 13:41

    XSLT is best used for transforming one XML dialect to another.

    To compare XML files, I would use an XML parser on your platform and compare the documents using it.

    It is possible to compare the two, but I would advise against it, if you have other options.

提交回复
热议问题