Mercurial > hg > camir-ismir2012
annotate toolboxes/xml_toolbox/xml_parse.m @ 0:cc4b1211e677 tip
initial commit to HG from
Changeset:
646 (e263d8a21543) added further path and more save "camirversion.m"
author | Daniel Wolff |
---|---|
date | Fri, 19 Aug 2016 13:07:06 +0200 |
parents | |
children |
rev | line source |
---|---|
Daniel@0 | 1 %XML_PARSE parses XML string and returns corresponding Matlab structure. |
Daniel@0 | 2 % |
Daniel@0 | 3 % SYNTAX |
Daniel@0 | 4 % V = xml_parse(xmlstr) |
Daniel@0 | 5 % V = xml_parse(xmlstr, attswitch) |
Daniel@0 | 6 % V = xml_parse(xmlstr, attswitch, S) |
Daniel@0 | 7 % |
Daniel@0 | 8 % Parses XML string str and returns matlab variable/structure. |
Daniel@0 | 9 % This is a non-validating parser! |
Daniel@0 | 10 % |
Daniel@0 | 11 % INPUT |
Daniel@0 | 12 % str xml string, possibly from file with function xml_load.m |
Daniel@0 | 13 % att_switch 'on'- reads attributes, 'off'- ignores attributes |
Daniel@0 | 14 % S Optional. Variable which gets extended or whose |
Daniel@0 | 15 % substructure parameters get overridden by entries in |
Daniel@0 | 16 % the string. (may be removed in future versions) |
Daniel@0 | 17 % |
Daniel@0 | 18 % OUTPUT |
Daniel@0 | 19 % V Matlab variable or structure |
Daniel@0 | 20 % |
Daniel@0 | 21 % RELATED |
Daniel@0 | 22 % xml_format, xml_formatany, xml_parseany, xml_load, xml_save, (xmlread, xmlwrite) |
Daniel@0 | 23 |
Daniel@0 | 24 % Copyright (C) 2002-2005, University of Southampton |
Daniel@0 | 25 % Author: Dr Marc Molinari <m.molinari@soton.ac.uk> |
Daniel@0 | 26 % $Revision: 1.1 $ $Date: 2005/04/15 17:12:14 $ $Tag$ |
Daniel@0 | 27 |