Changeset 925 for trunk/src/@xmltree/root.m
- Timestamp:
- Feb 17, 2016, 12:52:48 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/@xmltree/root.m
r723 r925 5 5 % tree - XMLTree object 6 6 % uid - UID of the root element of tree 7 %_______________________________________________________________________ 7 %__________________________________________________________________________ 8 8 % 9 9 % Return the uid of the root element of the tree. 10 %_______________________________________________________________________ 11 % @(#)root.m Guillaume Flandin 02/04/17 10 %__________________________________________________________________________ 11 % Copyright (C) 2002-2008 http://www.artefact.tk/ 12 13 % Guillaume Flandin 14 % $Id: root.m 4460 2011-09-05 14:52:16Z guillaume $ 12 15 13 16 % Actually root is necessarily the element whos UID is 1, by … … 27 30 % Look for the first element in the XML Tree 28 31 for i=1:length(tree) 29 30 31 32 32 if strcmp(get(tree,i,'type'),'element') 33 uid = i; 34 break 35 end 33 36 end
Note: See TracChangeset
for help on using the changeset viewer.