wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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"
 
jQuery in Action, 2nd edition
 
subject: Fundamental Question of XML
 
Similar Threads
Custom tags Qn in K &B pg 560
Query relating to transforming XML using XSL
Doubt in HeadFirst question
How to get a SimpleTag Parent inside Classic nested Tag ( have a look)
lt body-content gt element in TLD