Updates variants to be stored in xml with namespace (and now keeps the @isDoc) - but not too sure about this still.