view m-toolbox/classes/+utils/@xml/getString.m @ 50:7d2e2e065cf1
database-connection-manager
Update unit tests
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Wed, 07 Dec 2011 17:24:37 +0100 (2011-12-07)
parents
f0afece42f48
children
line source
+ −
+ − function str = getString(node)
+ −
+ − % Get node content
+ − str = utils.xml.recoverString(node.getTextContent());
+ − % Get the shape from the attribute
+ − shape = utils.xml.getShape(node);
+ −
+ − str = reshape(str, shape);
+ −
+ − end
+ −