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')
引用格式
Sam Warner (2024). XML Parse-n-Find (https://www.mathworks.com/matlabcentral/fileexchange/38930-xml-parse-n-find), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2012b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Structured Data and XML Documents >
在 Help Center 和 MATLAB Answers 中查找有关 Structured Data and XML Documents 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |