%% Select Structure Path
% Specify the precise XML element node under which to start reading the structure in the input file.
% Read the fifth Name element in the XML file music.xml. Specify the full XPath expression of the element node as the value of 'StructSelector'.

S = readstruct("music.xml","StructSelector","/MusicalEnsemble/Musicians/Name[5]")

% Copyright 2020 The MathWorks, Inc.
%