Skip to content

No matter what I give, return None #2

@xnzj

Description

@xnzj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions