Re: comparing XML files to eachother

2009-08-18 Thread Simon Forman
On Mon, Aug 17, 2009 at 3:51 PM, David Brochubrochu...@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..)
-- 
http://mail.python.org/mailman/listinfo/python-list


comparing XML files to eachother

2009-08-17 Thread David Brochu
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?
-- 
http://mail.python.org/mailman/listinfo/python-list