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.1 2007/06/08 14:15:04 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.1 2007/06/08 14:15:04 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 = str2double(char(ch.getTextContent));
0023     case 'Q'      
0024       q = str2double(char(ch.getTextContent));
0025       
0026     otherwise
0027   end
0028   
0029 end
0030 
0031 z = zero(f,q);
0032 z = set(z, 'name', name);
0033 z = set(z, 'version', ver);
0034 
0035 
0036 % END

Generated on Fri 08-Jun-2007 16:09:11 by m2html © 2003