Order of elements is significant in XML, so in your example the two documents are different. Attribute order is not significant, though.
<people>
<person name="kathy" id="1"/>
</people>
This is exactly the same as:
<people>
<person id="1" name="kathy"/>
</people>