for instance, if you need to read a “project” to know what classes in memory to create as you read the second gives you that the moment you get the node without having tread all the details
the first you might have to walk through the nodes to find things like the class type etc since XML doesn’t mandate ordering of nodes
in reality its probably somewhere in between - some things immediately accessible in attributes, and the rest in contained nodes