new procedure for ontologies with internal xml