added parser to initialize from an existing xml config.