basic question with a dtd

Posted by voodoomsr on Stack Overflow See other posts from Stack Overflow or by voodoomsr
Published on 2011-01-03T22:10:10Z Indexed on 2011/01/04 9:53 UTC
Read the original article Hit count: 276

Filed under:
|
|

i need an element with the characteristics

<!ELEMENT section ((comment*)|definition|(comment*))>

but that is ambiguous, i get the next message in visual studio

Multiple definition of element 'comment' causes the content model to become ambiguous. A content model must be formed such that during validation of an element information item sequence, the particle contained directly, indirectly or implicitly therein with which to attempt to validate each item in the sequence in turn can be uniquely determined without examining the content or attributes of that item, and without any information about the items in the remainder of the sequence.

So how can i write correctly that? the correct structure is one definition surrounded by possibles comments elements.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about validation