view m-toolbox/classes/@data3D/fromDom.m @ 52:daf4eab1a51e
database-connection-manager tip
Fix. Default password should be [] not an empty string
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Wed, 07 Dec 2011 17:29:47 +0100 (2011-12-07)
parents
f0afece42f48
children
line source
+ −
+ − function obj = fromDom(obj, node, inhists)
+ −
+ − %%%%%%%%%% Call super-class
+ −
+ − fromDom@data2D(obj, node, inhists);
+ −
+ − %%%%%%%%%% Get properties from the node attributes
+ −
+ − %%%%%%%%%% Get properties from the child nodes
+ −
+ − % Get zunits
+ − childNode = utils.xml.getChildByName(node, 'zunits');
+ − if ~isempty(childNode)
+ − obj.zunits = unit(childNode, inhists);
+ − end
+ −
+ − % Get z
+ − childNode = utils.xml.getChildByName(node, 'z');
+ − if ~isempty(childNode)
+ − obj.z = utils.xml.getNumber(childNode);
+ − end
+ −
+ − end