First of all thank for the excellent code.
I have a "small" problem according to the cell. In you code, if there are more MORE THAN ONE child than you create a cell, otherwise not. What should I change to have the case: Even if the node has ONLY ONE child than I create a cell (with one element)
@kavita: Have you downloaded the dependencies.tar, extracted and added it to your matlab path ? It can be found here: https://github.com/johnyf/openstreetmap/releases
In there you will find the renamed xml2struct_fex28518 function. The rename is to avoid name conflicts with the bioinformatics toolbox (removing that from your installation is not recommended).
The original error that you see did not relate to the bioinformatics toolbox, since it couldn't find xml2struct_fex28518, not xml2struct.
The persistency of xml2struct in matlab's path may be due to caching (e.g., compare `which` with `hash` in a bash shell). Perhaps after restarting matlab it won't find xml2struct any more. In any case, it is not the cause for the error.