Align the code reading an XML profile to the new XML reader
Merge pull request #176 from mgavioli/Fix_profile_XML_read

Align the code reading an XML profile to the new XML reader