GeeCON Prague 2014*
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


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Fundamental Question of XML" Watch "Fundamental Question of XML" New topic
Author

Fundamental Question of XML

Hoyin Chan
Greenhorn

Joined: Mar 28, 2004
Posts: 3
I am not very sure about the *, +, | and () used to identify the quatity of the element.
Like:
If the DTD is: <!ELEMENT tag1 (tag2 | tag3*)+>
What does this mean??
Is it correct to say
  <tag1>
    <tag2>
    </tag2>
    <tag2>
    </tag2>
  </tag1>
?
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"
 
GeeCON Prague 2014
 
subject: Fundamental Question of XML