Finish the BuildConfigurationFromXML() function