On Monday, January 13, 2003, at 10:23 AM, Patrick McConnell wrote: > > Can schema's easily represent parsed character data like DTD's can? > That > is, can you have this: > > <annotation>This gene, <accession>ABC123</accession>, is a precursor to > <accession>DEF456</accession>, which is a <keyword>G-Protein > regulator</keyword>.</annotation> > > represented by a schema? > > My feeling is that DTD's are better at representing this sort of > document-style XML. Am I wrong here? You can easily do this in XML Schema (see http://www.w3.org/XML/Schema): <element name="annotation"> <complexType mixed="true"> <group maxOccurs="unbounded"> <element name="accession"/> <element name="keyword"/> </group> </complexType> </element> <element name="accession" type="xs:string"/> <element name="keyword" type="xs:string"/> Alex Milowski FAX: (707) 598-7649 alex at milowski.com "The excellence of grammar as a guide is proportional to the paucity of the inflexions, i.e. to the degree of analysis effected by the language considered." Bertrand Russell in a footnote of Principles of Mathematics