%% Specify Root Node in Output File
% Read the file music.xml as a structure S.

S = readstruct("music.xml")

% Write S to the XML file named band.xml. Name the root node JazzBand. Display the contents of band.xml.

writestruct(S,"band.xml","StructNodeName","JazzBand")
type band.xml

% Copyright 2020 The MathWorks, Inc.