You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Class Definition:
xmlelem - Handle class with dynamic property to hold an XML element data
Functions:
xmlparse - Parse xml file to xmlelem class object tree
xmlfind - Wraps handle.findobj to traverse xmlelem tree
Example:
% Parse XML file to XMLELEM tree
T = xmlparse(fullfile(matlabroot,'toolbox','matlab','general','info.xml'))
% Flatten the tree
F = xmlfind(T)
% Find XML element text with 'matlab'
elem = xmlfind(T,'Name','#text','Value','matlab')
Cite As
Sam Warner (2026). XML Parse-n-Find (https://www.mathworks.com/matlabcentral/fileexchange/38930-xml-parse-n-find), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (3.69 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
