This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Fundamental Question of XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Fundamental Question of XML" Watch "Fundamental Question of XML" New topic

Fundamental Question of XML

Hoyin Chan

Joined: Mar 28, 2004
Posts: 3
I am not very sure about the *, +, | and () used to identify the quatity of the element.
If the DTD is: <!ELEMENT tag1 (tag2 | tag3*)+>
What does this mean??
Is it correct to say
And can I use both tag2 and tag3 inside tag1?
[ July 10, 2004: Message edited by: Hoyin Chan ]
Blake Minghelli
Ranch Hand

Joined: Sep 13, 2002
Posts: 331
You might find this DTD tutorial helpful.

Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"
I agree. Here's the link:
subject: Fundamental Question of XML
It's not a secret anymore!