Values of type ID must match the Name production. A name must not appear more than once in an XML document as a value of this type; i.e., ID values must uniquely identify the elements which bear them.
No element type may have more than one ID attribute specified.
An ID attribute must have a declared default of #IMPLIED or #REQUIRED.
Actually, it's not an error to declare an element twice. The first declaration wins and the later one(s) are ignored. However, in this case it may not give the intended result.Tom PassinRichard Toren wrote -Sent: Sunday, January 21, 2001 5:32 AMSubject: RE: how to quickly find an element (by attribute) in a DOM? any hints appeciatedHello,I looked at your DTD with the help of xmlspy and it was brought to my attention that you have the <!ELEMENT event ..... > defined twice. This is probably unintentional, but definitely is an error. Secondly, I think that a valid ID must start with an alpha and that no two nodes share the same id. Now to your question: