I want to know what is difference between this 2 ELEMENT tag :
<!ELEMENT bank (account*, customer*, depositor*)>
and
<!ELEMENT bank (account | customer | depositor )*>
thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In a nutshell, the first ELEMENT declaration is saying the child elements have to be in a specific order. The second ELEMENT declaration is saying the child elements can be in any order.
The following means: a
bankelement containing zero or moreaccountelements, followed by zero or morecustomerelements, followed by zero or moredepositorelements. (In that specific order.)The following means: a
bankelement containing zero or moreaccountorcustomerordepositorelements (in any order).The ‘
,‘ means “followed by” and the ‘|‘ means “or”. The ‘*‘ means zero or more. Also, a ‘+‘ means one or more (at least one).