Home > classes > @ao > private > xml_read_zero.m

xml_read_zero

PURPOSE ^

XML_READ_ZERO read a zero object from the given input node.

SYNOPSIS ^

function z = xml_read_zero(node)

DESCRIPTION ^

 XML_READ_ZERO read a zero object from the given input node.

 M Hewitson 16-02-07

 $Id: xml_read_zero.html,v 1.5 2007/11/07 20:58:33 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function z = xml_read_zero(node)
0002 
0003 % XML_READ_ZERO read a zero object from the given input node.
0004 %
0005 % M Hewitson 16-02-07
0006 %
0007 % $Id: xml_read_zero.html,v 1.5 2007/11/07 20:58:33 hewitson Exp $
0008 %
0009 
0010 disp('-- reading zero');
0011 
0012 children = node.getChildNodes;
0013 for j=1:children.getLength
0014   ch = children.item(j-1);
0015   nodeName = char(ch.getNodeName);
0016   switch nodeName
0017     case 'Name'
0018       name = char(ch.getTextContent);
0019     case 'Version'
0020       ver = char(ch.getTextContent);
0021     case 'F'
0022       f = str2num(char(ch.getTextContent));
0023     case 'Q'
0024       q = str2num(char(ch.getTextContent));
0025     case 'ri'
0026       ri = str2num(char(ch.getTextContent));
0027 
0028     otherwise
0029   end
0030 
0031 end
0032 
0033 z = zero(f,q);
0034 z = set(z, 'name', name);
0035 z = set(z, 'version', ver);
0036 % z = set(z, 'ri',      ri);
0037 
0038 % END

Generated on Tue 06-Nov-2007 12:08:42 by m2html © 2003