Chapter 3 Building an XML model
Group particles indicate how child elements are related with their parent element.
You can choose a group particle from the following list:
| Tool | Tooltip | Description |
|---|---|---|
|
Sequence | Child elements must appear at least once in the order of their declaration |
|
Choice | Only one child element can be linked to the parent element |
|
All | Child elements can appear in any order and each of them once or not |
In a schema, a group particle is declared with its corresponding tag: <sequence>, <choice> or <all>.
In a model targeted with the XML-Data Reduced language, group particles are declared through the order attribute of an <ElementType> tag:
| Group particle | Value of the order attribute in XDR |
|---|---|
| Sequence | seq |
| Choice | one |
| All | many |
Extract of an XDR file:
| Copyright (C) 2005. Sybase Inc. All rights reserved. |
| |