untitled

(ff) #1

382 17 Answers to Selected Exercises


<element name=’atomArray’>
<complexType>
<sequence>
<element ref=’t:atom’ maxOccurs=’unbounded’/>
</sequence>
<attribute name=’title’ type=’string’ use=’optional’/>
<attribute name=’id’ type=’string’ use=’optional’/>
<attribute name=’convention’ type=’string’ use=’default’ value=’CML’/>
</complexType>
</element>

<element name=’atom’>
<complexType>
<attribute name=’elementType’ type=’string’ use=’optional’/>
<attribute name=’title’ type=’string’ use=’optional’/>
<attribute name=’id’ type=’string’ use=’optional’/>
<attribute name=’convention’ type=’string’ use=’default’ value=’CML’/>
<attribute name=’dictRef’ type=’string’ use=’optional’/>
<attribute name=’count’ type=’string’ use=’default’ value=’1’/>
</complexType>
</element>

<element name=’bondArray’>
<complexType>
<sequence>
<element ref=’t:bond’ maxOccurs=’unbounded’/>
</sequence>
<attribute name=’title’ type=’string’ use=’optional’/>
<attribute name=’id’ type=’string’ use=’optional’/>
<attribute name=’convention’ type=’string’ use=’default’ value=’CML’/>
</complexType>
</element>

<element name=’bond’>
<complexType>
<attribute name=’title’ type=’string’ use=’optional’/>
<attribute name=’id’ type=’string’ use=’optional’/>
<attribute name=’convention’ type=’string’ use=’default’ value=’CML’/>
<attribute name=’dictRef’ type=’string’ use=’optional’/>
<attribute name=’atomRefs’ type=’string’ use=’optional’/>
</complexType>
</element>
</schema>
ANSWER TO
EXERCISE2.2
Change the line
<attribute name=’elementType’ type=’string’ use=’optional’/>
Free download pdf