Staging XML file writing and reading support