Description of Element Modifiers in DTDs

Table 47 describes the available modifiers:

Modifier
Description
Indicator in DTD
Optional
This element can appear once or not at all. (0 or 1)
Question mark ( ?)
Zero or more
This element is optional and repeatable. (0, 1, or more)
Asterisk ( *)
One or more
This element is required and repeatable. (1 or more)
Plus sign ( +)
Choice
Exactly one of the specified subelements must appear.
Vertical bar ( |)
Sequence
If no other modifiers are defined on the Sequence modifier, each subelement in this element must appear exactly once. In other words, it is required. Also, the subelements must appear in the order in which they are specified in the referencing element. You can define other modifiers on the Sequence modifier. In this way, you can specify that some subelements are optional, some appear zero or more times, and some appear one or more times.
Comma ( ,)
Table 47. Element Modifiers

Sun Multi-Schema XML Validator (MSV)

Learn how to integrate the Multi Schema Validator (MSV) into Stylus Studio as one of the Custom Validation Engines. It will work for files with a DTD, a single XSD, or both a DTD and a single XSD.

Learn SQL/XML

Learn how to access and update relational databases using industry-standard SQL/XML technologies along with Stylus Studio's DB-to-XML editor and File Explorer technologies.

EDI Mapping

To transform EDI to XML, whether for X12 or EDIFACT, Stylus Studio provides the design tools and run-time support. EDIFACT, X12 and custom EDI formats can be translated, validated and mapped using the EDI Mapping adapter technology described here.

Using DTD in Java Applications

Learn how to validate XML documents using industry-standard DTD's from within your Java applications using Java DTD components including Apache Xerces and XSV.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member