New interface for import an object from an xml string.