xmlread, xmlwrite and xslt are not provided in MATLAB 6.1 (R12.1), but if you've got the Report Generator installed you'll have the "Saxon" and "Xerces" JAR files which contain an XML reading/writing/transforming implementation. All you have to do is call the right Java methods. The attached files do just that.
Added copyright lines.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.