annotate toolboxes/xml_toolbox/xml_load.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_LOAD Loads XML file and return contents as Matlab structure or variable
|
Daniel@0
|
2 %
|
Daniel@0
|
3 % SYNTAX V = xml_load( filename )
|
Daniel@0
|
4 % V = xml_load( filename, attswitch )
|
Daniel@0
|
5 %
|
Daniel@0
|
6 % INPUT
|
Daniel@0
|
7 % filename filename of xml file to load (if extension .xml is omitted,
|
Daniel@0
|
8 % xml_load tries to append it if the file cannot be found).
|
Daniel@0
|
9 % This file should have been saved with xml_save().
|
Daniel@0
|
10 % If it's a non-Matlab XML file, please use e.g.
|
Daniel@0
|
11 % xmlstr = fileread(filename); V = xml_parseany(xmlstr);
|
Daniel@0
|
12 % attswitch optional, default='on':
|
Daniel@0
|
13 % 'on' takes attributes idx,size,type into account for
|
Daniel@0
|
14 % creating corresponding Matlab data types
|
Daniel@0
|
15 % 'off' ignores attributes in XML element headers
|
Daniel@0
|
16 %
|
Daniel@0
|
17 % OUTPUT
|
Daniel@0
|
18 % V Matlab structure or variable
|
Daniel@0
|
19 %
|
Daniel@0
|
20 % SEE ALSO
|
Daniel@0
|
21 % xml_save, xml_format, xml_formatany, xml_parse, xml_parseany, xml_help, (xmlread, xmlwrite)
|
Daniel@0
|
22
|
Daniel@0
|
23 % Copyright (C) 2002-2005, University of Southampton
|
Daniel@0
|
24 % Author: Dr Marc Molinari <m.molinari@soton.ac.uk>
|
Daniel@0
|
25 % $Revision: 1.1 $ $Date: 2005/04/15 17:12:14 $ $Tag$
|
Daniel@0
|
26
|