Only build the DOM if needed for mergefile. Otherwise pass input xml file directly to the Transformer so it can find the system ID