Configure any object from XML.