Added a method to load a profile and load xml.