implemented XML parsing given user-provided config file.