Object builder from XML data