Mercurial > hg > camir-aes2014
annotate toolboxes/xml_toolbox/xml_format.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
rev | line source |
---|---|
wolffd@0 | 1 %XML_FORMAT Convert a Matlab variable or struct into an XML string. |
wolffd@0 | 2 % |
wolffd@0 | 3 % SYNTAX: xmlstr = xml_format(v, [attswitch], [name] ) |
wolffd@0 | 4 % |
wolffd@0 | 5 % INPUT |
wolffd@0 | 6 % v Matlab variable type "struct", "char", "double"(numeric), |
wolffd@0 | 7 % "complex", "sparse", "cell", or "logical"(boolean) |
wolffd@0 | 8 % attswitch optional, default='on': |
wolffd@0 | 9 % 'on' writes header attributes idx,size,type for |
wolffd@0 | 10 % identification by Matlab when parsing in XML later |
wolffd@0 | 11 % 'off' writes "plain" XML without header attributes |
wolffd@0 | 12 % name optional, give root element a specific name, eg. 'project' |
wolffd@0 | 13 % |
wolffd@0 | 14 % OUTPUT |
wolffd@0 | 15 % xmlstr string, containing XML description of variable V |
wolffd@0 | 16 % |
wolffd@0 | 17 % SEE ALSO |
wolffd@0 | 18 % xml_help, xml_formatany, xml_parse, xml_load, xml_save, (xmlread, xmlwrite) |
wolffd@0 | 19 |
wolffd@0 | 20 % Copyright (C) 2002-2005, University of Southampton |
wolffd@0 | 21 % Author: Dr Marc Molinari <m.molinari@soton.ac.uk> |
wolffd@0 | 22 % $Revision: 1.1 $ $Date: 2005/04/15 17:12:14 $ $Tag$ |
wolffd@0 | 23 |