wolffd@0: %XML_FORMAT Convert a Matlab variable or struct into an XML string. wolffd@0: % wolffd@0: % SYNTAX: xmlstr = xml_format(v, [attswitch], [name] ) wolffd@0: % wolffd@0: % INPUT wolffd@0: % v Matlab variable type "struct", "char", "double"(numeric), wolffd@0: % "complex", "sparse", "cell", or "logical"(boolean) wolffd@0: % attswitch optional, default='on': wolffd@0: % 'on' writes header attributes idx,size,type for wolffd@0: % identification by Matlab when parsing in XML later wolffd@0: % 'off' writes "plain" XML without header attributes wolffd@0: % name optional, give root element a specific name, eg. 'project' wolffd@0: % wolffd@0: % OUTPUT wolffd@0: % xmlstr string, containing XML description of variable V wolffd@0: % wolffd@0: % SEE ALSO wolffd@0: % xml_help, xml_formatany, xml_parse, xml_load, xml_save, (xmlread, xmlwrite) wolffd@0: wolffd@0: % Copyright (C) 2002-2005, University of Southampton wolffd@0: % Author: Dr Marc Molinari wolffd@0: % $Revision: 1.1 $ $Date: 2005/04/15 17:12:14 $ $Tag$ wolffd@0: