开发者

How to build SVN/Git like Diff in WebApp?

开发者 https://www.devze.com 2023-02-01 08:09 出处:网络
I have XMLs(or Objects) that represents data at some point in a business process. I would like to be able to see what has changed between step1 and step5(two versions of the same XML or Object). Id li

I have XMLs(or Objects) that represents data at some point in a business process. I would like to be able to see what has changed between step1 and step5(two versions of the same XML or Object). Id like to implement this like diff function in version control system. how to do it in web app?

P.S. I dont wa开发者_高级运维nt to just store those files in VCS and than make it do the diff. However if I could somehow emulate VCS without having one that would be cool.

P.S. I know there are some JS frameworks that offer diff functionality, but the XML could have 10MB, so I think it should be dont at server side.


There seem to be quite a few Open Source XML Diff projects written in Java. I'd recommend taking a look at them and see if you can't work them into your project somehow to spit out a preformatted HTML result.

http://www.manageability.org/blog/stuff/open-source-xml-diff-in-java

0

精彩评论

暂无评论...
验证码 换一张
取 消