<root>

<root> (root node) represents the root node of a tree. 19.2 Trees
Modulenets — 19 Graphs, Networks, and Trees
AttributesIn addition to global attributes
valueprovides the value of the root, which is a feature structure or other analytic element.
Status Required when applicable
Datatype

<rng:ref name="data.pointer"/>
data.pointer
Values A valid identifier of a feature structure or other analytic element.
childrenprovides a list of identifiers of the elements which are the children of the root node.
Status Required
Datatype 1–∞ occurrences of

<rng:ref name="data.pointer"/>
data.pointer
separated by whitespace
Values A list of valid identifiers.
Note
If the root has no children (i.e., the tree is ‘trivial’), then the children attribute must be omitted. For technical reasons, it cannot be specified as <root children=''>.
ord(ordered) indicates whether or not the root is ordered.
Status Required when applicable
Datatype

<rng:ref name="data.xTruthValue"/>
data.xTruthValue
Note
The value true indicates that the children of the root are ordered, whereas false indicates the are unordered.
Use if and only if ord is specified as partial on the tree element and the root has more than one child.
outDegreegives the out degree of the root, the number of its children.
Status Optional
Datatype

<rng:ref name="data.count"/>
data.count
Values A nonnegative integer.
Note
The in degree of the root is always 0.
Used by
May contain
core: label
Declaration

<rng:element name="root">
<rng:ref name="att.global.attributes"/>
<rng:optional>
 <rng:attribute name="value">
  <rng:ref name="data.pointer"/>
 </rng:attribute>
</rng:optional>
<rng:attribute name="children">
 <rng:list>
  <rng:oneOrMore>
   <rng:ref name="data.pointer"/>
  </rng:oneOrMore>
 </rng:list>
</rng:attribute>
<rng:optional>
 <rng:attribute name="ord">
  <rng:ref name="data.xTruthValue"/>
 </rng:attribute>
</rng:optional>
<rng:optional>
 <rng:attribute name="outDegree">
  <rng:ref name="data.count"/>
 </rng:attribute>
</rng:optional>
<rng:optional>
 <rng:ref name="label"/>
</rng:optional>
</rng:element>
element root
{
   att.global.attributes,
   attribute value { data.pointer }?,
   attribute children { list { data.pointer+ } },
   attribute ord { data.xTruthValue }?,
   attribute outDegree { data.count }?,
   label?
}
Example
<root xml:id="vp1children="#vb1 #pn1outDegree="2">
 <label>VP</label>
</root>
<leaf xml:id="vb1"/>
<leaf xml:id="pn1"/>