Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
Compare two XML strings. Returns `True` if the two strings are
equivalent, otherwise it returns `False`.

        def xml_compare(expected, compared, whitespace=True, lexical=True):
    """
    Compare two XML strings. Returns `True` if the two strings are
    equivalent, otherwise it returns `False`.
    """
    for line in xml_diff(expected, compared, whitespace):
        # differences found
        return False
    # No differences
    return True
        


src/a/m/Amara-2.0.0/test/xmlcore/test_write.py   Amara(Download)
 
from amara import xml_print, tree
from amara.lib.treecompare import xml_compare
from amara.writers import lookup, register, XML_W, HTML_W, XHTML_W
 

src/a/m/Amara-2.0.0/test/demo/test_atomtools.py   Amara(Download)
from amara import tree, bindery
 
from amara.lib.treecompare import xml_compare
 
from amara.tools.atomtools import *