better origin handling for literally copied XML