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