Right now this may not be a big performance issue. However, if the number of attributes to process becomes larger, it may be more efficient to extract all of them while traversing the document once. I acknowledge currently (at 3 attributes) this might not make much of a difference.