comparing XML files to eachother
sajmikins at gmail.com
Tue Aug 18 21:42:10 CEST 2009
On Mon, Aug 17, 2009 at 3:51 PM, David Brochu<brochu121 at gmail.com> wrote:
> I need to compare one xml document to another to see if the content matches.
> Unfortunately, the formatting (spacing) and order of elements may change
> between files from run to run. I have looked into xml dom minidom but can't
> seem to find how to accomplish this. Does anyone know how I can do a compare
> between two XML documents using the STL?
It seems to me that you're going to have to "normalize" the documents
to be able to compare them. (I.e. strip or ignore spacing
differences, sort the elements to be in the same order, etc..)
More information about the Python-list