Sep 27, 2021
You're cheating. For the two formats to be equivalent you would need something like this in xml
<house floors="2">
<address>123 Any Street</address>
</house>
Whether floors should be an element or an attribute is a discussion I would rather avoid.