XML/Input: Difference between revisions

m
Line 1,863:
Émily</pre>
 
=={{header|MatlabMATLAB}}==
<lang Matlab>RootXML = com.mathworks.xml.XMLUtils.createDocument('Students');
<lang Matlab>
RootXML = com.mathworks.xml.XMLUtils.createDocument('Students');
docRootNode = RootXML.getDocumentElement;
thisElement = RootXML.createElement('Student');
Line 1,907 ⟶ 1,906:
for I=0:1:RootXML.getElementsByTagName('Student').getLength-1
disp(RootXML.getElementsByTagName('Student').item(I).getAttributes.item(tag).getValue)
end</lang>
 
</lang>
{{out}}
Output:
 
<pre>
April
1,336

edits