-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
1.xml
<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>Tove</to>
<from>Mike</from>
<heading>Reminder</heading>
<body>Hello World</body>
</note>
2.xml
<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
test.py
# coding: utf-8
import xml_diff
import lxml.etree
dom1 = lxml.etree.parse("1.xml").getroot()
dom2 = lxml.etree.parse("2.xml").getroot()
comparison = xml_diff.compare(dom1, dom2)
print(comparison)
Output:
None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels