Bit of a silly thing to ask for, but empty vocabs don't export and it'd be nice if they did. Looking at the code, for xml for instance, is because it's checking if there's anything in the vocab first or won't import anything. Moving the vocabulary load and output foreach before if ($tree) should fix that, assuming there import handles it.
Comments
Comment #1
dman commentedI don't actually see the point of this. :-/
It's easier to configure a vocab by hand than to export & import a vocab just for a dump of its properties.