Code covered by the BSD License  

Highlights from
XML Parse-n-Find

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

XML Parse-n-Find

by

 

XML parser and tag finder

| Watch this File

File Information
Description

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

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