When some custom categories are exporting to an XML file, Alfresco's ViewXMLExporter does not recognize them as Category types.
The Categories have special case that the full path should be exported in order to be imported correctly later.
The issue is in the following:
method -> public void value(NodeRef nodeRef, QName property, Object value, int index)
Actual: it checks if the property is equal to ContentModel.PROP_CATEGORIES, which limits to Alfresco's default category types.
Expected: to check if the datatype is equal to DataTypeDefinition.CATEGORY, in order to work with all Category types.