Re: Microsoft XML Diff/Patch -- how to output differences



Steve Hershoff wrote:

Even if I could get a document that shows what XML Patch would do; the new nodes added, or nodes deleted, or values changed, I'd be happy. The XML patch demo site at http://apps.gotdotnet.com/xmltools/xmldiff/default.aspx has a nice colored comparison between the two files, and would be terrific for my purposes, but I can't find any source code on how they did it.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/xmldiff.asp

explains using the DiffPatch tool and has a link to download Xmldiffpatch.exe which contains the source.

Note that there are a few bugs (as posted in the discussion forums). You can also download my ComXT tool from
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=675CEF21-B487-426A-AF0D-48A81BE0298F

for an example of using the XmlDiffPatch DLLs (and contains my modified XmlDiffPatch DLLs which correct a couple of the bugs).

--
Take care,
Ken
(to reply directly, remove the cool car. <sigh>)
.



Relevant Pages

  • Re: New Patch Fixes 43 Flaws In OS X, Many Serious
    ... In IE you can download something and it will automatically execute it. ... There have been exploitable bugs in IE, ... You must have an installer to do this, ... They do have the user's uid and gid, ...
    (comp.sys.mac.advocacy)
  • Re: Samba 3.0.21rc2 Available for Download
    ... >provided for testing purposes only. ... The log file shows nothing but a server startup message (with the correct ... >Common bugs fixed in 3.0.21 include: ... >in the same download directory as the source distribution. ...
    (comp.protocols.smb)
  • Re: size of git repository (was Re: [BUG] New Kernel Bugs)
    ... approach for really nasty bugs. ... and who happen to already use git. ... It's a 540MByte download over a slow link for everyone ... changelogs, annotations, etc.) it's a no-brainer that kernel developers ...
    (Linux-Kernel)
  • Re: Podcast catcher in Python
    ... should write/save it so that I can play it on a media player such as ... complete noob to Python and internet programming. ... well as from bugs in your code. ... So I'd download the xml data that you want to test with to a local file, ...
    (comp.lang.python)
  • Re: Podcast catcher in Python
    ... should write/save it so that I can play it on a media player such as ... I will play around with this. ... In general, I'd recommend against testing new code live against the internet, since errors can occur from the vagaries of the internet as well as from bugs in your code. ... So I'd download the xml data that you want to test with to a local file, and test out your parsing logic against that copy. ...
    (comp.lang.python)

Loading