XML Parse-n-Find

版本 1.0.0.0 (3.7 KB) 作者: Sam Warner
XML parser and tag finder
889.0 次下载
更新时间 2012/11/6

查看许可证

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
类别
Help CenterMATLAB 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