Creates a ``committed'' datatype in the HDF5 file.
Arguments:
rootGrp: The root group of the file.
parentNode: The parent node of the datatype to be written.
parentName: The name of the parent node.
childNode: The node to be written.
childName: The datatype's name.
Returns 1 upon success, otherwise 0.