<div>I need to compare a REST XML response with a 'gold standard' response (one that we have already verified is correct). The problem is, sometimes the REST response comes back and it is logically correct, but the order of attributes and elements is different than what is in the 'gold standard' file. For example:</div>

<div> </div>
<div>'Gold Standard':</div>
<div><?xml version="1.0"    encoding="UTF-8" standalone="yes"?><br><Response><br>    <Service id="1523"/><br>    <CustomerInformation><br>        <Networks><br>
            <Network CUR="EUR" LOC="GB" type="text"/><br>        </Networks><br></Response></div>
<div> </div>
<div>REST Response:</div>
<div><?xml version="1.0"  standalone="yes" encoding="UTF-8"?><br><Response><br>    <Service id="1523"/><br>    <CustomerInformation><br>        <Networks><br>
            <Network type="text" CUR="EUR" LOC="GB" /><br>        </Networks><br></Response><br></div>
<div>Notice how the attributes in <xml> and <network> are in different order. The response is correct, but obviously doesn't match the 'gold standard'.</div>
<div> </div>
<div>Does anyone know how I would be able to compare these two files and verify they match, even though the order of attributes and elements may be different between the two? Is there a module I should be using for this?</div>