id

<h:div class="summary">An attribute providing a mandatory unique ID for an element.</h:div>
<h:div class="description">This is a horrible hack. It should be possible to add 'required' to the attributeGroup where used... (Maybe it is and I am still fighting Schema Wars.</h:div>

Attribute Information

Used By

Attribute Group mandatoryId

Source

<xsd:attribute id="att.mandatoryId" name="id" type="idType" use="required">
  <xsd:annotation>
    <xsd:documentation>
      <h:div class="summary">An attribute providing a mandatory unique ID for an element.</h:div>
      <h:div class="description">This is a horrible hack. It should be possible to add 'required' to the attributeGroup where used... (Maybe it is and I am still fighting Schema Wars.</h:div>
    </xsd:documentation>
  </xsd:annotation>
</xsd:attribute>

Sample

< cml xmlns = "http://www.xml-cml.org/schema" xmlns:dc = "http://purl.org/dc/elements/1.1/" convention = "conventions:molecular" >

< dc:title>

test file for http://www.xml-cml.org/conventions/molecular convention

</ dc:title>

< dc:description>

valid molecular - atom has a child but it is not from the CML namespace

</ dc:description>

< dc:author>

J A Townsend

</ dc:author>

< dc:rights>

Copyright J A Townsend jat45@cantab.net 2009.

</ dc:rights>

< dc:date>

2009-01-21

</ dc:date>

< molecule id = "m1" >

< atomArray>

< atom id = "a1" elementType = "H" >

< dc:description>

a non CML element child of atom

</ dc:description>

</ atom>

</ atomArray>

</ molecule>

</ cml>