Hdf5 xml

Changes made to improve the code, removing obsolete code and adding error checks.  Fixed bug reported when no root group is specified and fixed another bug that caused a crash when the default attribute group was specified lower than the first two levels of group hierarchy.