Load from a simplexml object.