%% Return Transformation Result as a Document
% To return a transformation result as a matlab.io.xml.dom.Document object, provide an output argument, instead of specifying the result location as an input argument.

import matlab.io.xml.transform.*
doc = transform(Transformer,"capitals.xml","capitals.xsl");

%
% Copyright 2020 The MathWorks, Inc.