View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
XML Parse-n-Find

Be the first to rate this file! 6 Downloads (last 30 days) File Size: 3.69 KB File ID: #38930 Version: 1.0

XML Parse-n-Find


Kesh Ikuma (view profile)


XML parser and tag finder

| Watch this File

File Information

Class Definition:

xmlelem - Handle class with dynamic property to hold an XML element data


xmlparse - Parse xml file to xmlelem class object tree
xmlfind - Wraps handle.findobj to traverse xmlelem tree

% 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')

MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us