Preparations for XML output generation