Constructor pastes the XML instead of loading it