source: trunk/doc/FUNCTIONS_DOC/struct2xml.html @ 51

Last change on this file since 51 was 51, checked in by gostiaux, 14 years ago

added doc repository at the same level than src

File size: 3.8 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2                "http://www.w3.org/TR/REC-html40/loose.dtd">
3<html>
4<head>
5  <title>Description of struct2xml</title>
6  <meta name="keywords" content="struct2xml">
7  <meta name="description" content="'struct2xml': transform a matlab structure to a xml tree.">
8  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
9  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
10  <meta name="robots" content="index, follow">
11  <link type="text/css" rel="stylesheet" href="../m2html.css">
12</head>
13<body>
14<a name="_top"></a>
15<div><a href="../index.html">Home</a> &gt;  <a href="index.html">.</a> &gt; struct2xml.m</div>
16
17<!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png">&nbsp;Master index</a></td>
18<td align="right"><a href="index.html">Index for .&nbsp;<img alt=">" border="0" src="../right.png"></a></td></tr></table>-->
19
20<h1>struct2xml
21</h1>
22
23<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
24<div class="box"><strong>'struct2xml': transform a matlab structure to a xml tree.</strong></div>
25
26<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
27<div class="box"><strong>function t=struct2xml(Object,t,root_uid) </strong></div>
28
29<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
30<div class="fragment"><pre class="comment">'struct2xml': transform a matlab structure to a xml tree.
31--------------------------------------------------------------
32 each field with char string or num vector is transformed into a corresponding  xml element
33 each field with a matrix containing n lines is transformed into a xml element repeated n times
34 WARNING: PROBLEM WITH HIERARCHICAL structures
35%%%%%%%%%%%%%%%%%%%%%%
36 OUTPUT:
37 t: xmltree reproducing the structure of Object
38 type 'save(t)' to visualize the xml text and save(filename,t) to save it in a file
39
40 INPUT:
41  Object: matlab structure, possibly hierarchical
42  t: optional input xml tree in which a new branch needs to be appended
43  root_uid: optional uid of the xml element under which the new subtree must be appended</pre></div>
44
45<!-- crossreference -->
46<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
47This function calls:
48<ul style="list-style-image:url(../matlabicon.gif)">
49<li><a href="struct2xml.html" class="code" title="function t=struct2xml(Object,t,root_uid)">struct2xml</a>      'struct2xml': transform a matlab structure to a xml tree.</li></ul>
50This function is called by:
51<ul style="list-style-image:url(../matlabicon.gif)">
52<li><a href="civ_3D.html" class="code" title="function varargout = civ_3D(varargin)">civ_3D</a> 'civ_3D': function associated with the interface 'civ_3D.fig' for PIV in volume</li><li><a href="dataview.html" class="code" title="function varargout = dataview(varargin)">dataview</a>       'dataview': function for scanning directories in a campaign</li><li><a href="set_object.html" class="code" title="function varargout = set_object(varargin)">set_object</a>     'set_object': GUI to edit a projection object</li><li><a href="struct2xml.html" class="code" title="function t=struct2xml(Object,t,root_uid)">struct2xml</a>    'struct2xml': transform a matlab structure to a xml tree.</li><li><a href="update_imadoc.html" class="code" title="function update_imadoc(GeometryCalib,outputfile)">update_imadoc</a>  'update_imadoc': update an xml file with geometric calibration parameters</li></ul>
53<!-- crossreference -->
54
55
56
57<hr><address>Generated on Wed 10-Mar-2010 20:42:36 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> &copy; 2003</address>
58</body>
59</html>
Note: See TracBrowser for help on using the repository browser.