tree_schema.xml

text/xml tree_schema.xml — 1 KB

File contents

<?xml version="1.0" encoding="utf-8"?>
<pml_schema
  xmlns="http://ufal.mff.cuni.cz/pdt/pml/schema/"
  version="1.1">
  <revision>0.0.2</revision>
  <description>A generic schema for trees</description>

  <root name="treedata" type="treedata.type"/>

  <type name="treedata.type">
    <structure>
      <member name="meta" required="0" type="meta.type"/>
      <member name="trees" role="#TREES" required="1" type="trees.type"/>
    </structure>
  </type>

  <type name="meta.type">
    <structure>
      <member name="annotation_info" type="annotation-info.type"/>
    </structure>
  </type>

  <type name="annotation-info.type">
    <structure name="annotation-info">
      <member name="version_info"><cdata format="any"/></member>
      <member name="desc"><cdata format="any"/></member>
    </structure>
  </type>

  <type name="trees.type">
    <sequence>
      <element name="root" type="root.type"/>
    </sequence>
  </type>

  <type name="root.type">
    <structure role="#NODE" name="root">
      <member name="children" role="#CHILDNODES" type="childnodes.type"/>
    </structure>
  </type>

  <type name="childnodes.type">
    <sequence>
      <element name="node" type="node.type"/>
    </sequence>	
  </type>

  <type name="node.type">
    <structure role="#NODE" name="node">
      <member name="children" role="#CHILDNODES" type="childnodes.type"/>
    </structure>
  </type>
  
</pml_schema>