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

xml_read_pole

PURPOSE ^

XML_READ_POLE read a pole object from the given input node.

SYNOPSIS ^

function p = xml_read_pole(node)

DESCRIPTION ^

 XML_READ_POLE read a pole object from the given input node.

 M Hewitson 16-02-07

 $Id: xml_read_pole.m,v 1.3 2007/07/30 12:13:10 ingo Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function p = xml_read_pole(node)
0002 
0003 % XML_READ_POLE read a pole object from the given input node.
0004 %
0005 % M Hewitson 16-02-07
0006 %
0007 % $Id: xml_read_pole.m,v 1.3 2007/07/30 12:13:10 ingo Exp $
0008 %
0009 
0010 disp('-- reading pole');
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 p = pole(f,q);
0034 p = set(p, 'name',    name);
0035 p = set(p, 'version', ver);
0036 % p = set(p, 'ri',      ri);
0037 
0038 
0039 % END

Generated on Mon 03-Sep-2007 12:12:34 by m2html © 2003