Mercurial > hg > ltpda
comparison m-toolbox/classes/+utils/@xml/getObject.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 | |
2 function objs = getObject(node, inhists) | |
3 | |
4 objs = []; | |
5 objShape = [0 0]; | |
6 for jj = 1:node.getLength | |
7 | |
8 childNode = node.item(jj-1); | |
9 if childNode.getNodeType == childNode.ELEMENT_NODE | |
10 | |
11 className = utils.xml.mchar(childNode.getNodeName()); | |
12 objShape = utils.xml.getShape(childNode); | |
13 | |
14 objs = [objs feval(className, childNode, inhists)]; | |
15 end | |
16 end | |
17 objs = reshape(objs, objShape); | |
18 | |
19 end |