add function to clear CiftiXML, use it before parsing