Home > . > struct2xml.m

struct2xml

PURPOSE ^

'struct2xml': transform a matlab structure to a xml tree.

SYNOPSIS ^

function t=struct2xml(Object,t,root_uid)

DESCRIPTION ^

'struct2xml': transform a matlab structure to a xml tree.
--------------------------------------------------------------
 each field with char string or num vector is transformed into a corresponding  xml element
 each field with a matrix containing n lines is transformed into a xml element repeated n times 
 WARNING: PROBLEM WITH HIERARCHICAL structures
%%%%%%%%%%%%%%%%%%%%%%
 OUTPUT:
 t: xmltree reproducing the structure of Object
 type 'save(t)' to visualize the xml text and save(filename,t) to save it in a file

 INPUT:
  Object: matlab structure, possibly hierarchical
  t: optional input xml tree in which a new branch needs to be appended
  root_uid: optional uid of the xml element under which the new subtree must be appended

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 10-Mar-2010 20:42:36 by m2html © 2003