I need to step through each element to do a comparison of the attributes on each file. So I don't think the difflib would help, but thanks though.
Manny
User Profile
Collapse
-
Comparing 2 xml's
Is there a way to compare 2 xml's in python? I am aware of the sax and dom parsers, but I think those are for parsing single files.
Thanks for the help,
Manny -
Leave a comment:
-
Python 2.3.5 (#1, Aug 19 2006, 21:31:42)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright" , "credits" or "license" for more information.
>>> x = {1:2, 3:4, 5:6}
>>> y = { 10:11, 3:4, 14:15}
>>> dir()
['__builtins__', '__doc__', '__name__', 'x', 'y']
>>> x.items()
[(1, 2), (3, 4),...Leave a comment:
No activity results to display
Show More
Leave a comment: