output: support weight vector element as XML