Fixed it so that it parses the Configs.xml file correctly and are able to create a new xml fragment