source: trunk/src/@xmltree/parent.m

Last change on this file was 925, checked in by sommeria, 9 years ago

xmltree updated

File size: 579 bytes
Line 
1function p = parent(tree,uid)
2% XMLTREE/PARENT Parent Method
3% FORMAT uid = parent(tree,uid)
4%
5% tree   - XMLTree object
6% uid    - UID of the lonely child
7% p      - UID of the parent ([] if root is the child)
8%__________________________________________________________________________
9%
10% Return the uid of the parent of a node.
11%__________________________________________________________________________
12% Copyright (C) 2002-2011  http://www.artefact.tk/
13
14% Guillaume Flandin
15% $Id: parent.m 4460 2011-09-05 14:52:16Z guillaume $
16
17p = tree.tree{uid}.parent;
Note: See TracBrowser for help on using the repository browser.