java - Comparing two instances of XML for changes -
i have requirement want keep/track changes base xml document . have figure out efficient way keep track of changes done base xml structure , keep changes in different fomat(xml). input source can of both type sax , dom .how can achieve ?
xmlunit has functionality:
xmltestcase.comparexml() has both dom , sax versions. use detaileddiff
list of differences between 2 xmls. convert diff object own representation if needed.
xmlunit nice because can treat similar xml documents (such whitespace, sibling order, namespace prefixes) same if want.
Comments
Post a Comment