The XML elements are described in the following generic format:
<namespace:element
attribute=
attribute=
…
>
<namespace:subelement/>
<namespace:subelement/>
…
</namespace:element>
The following notation is used to indicate how often subelements occur:
Notation |
Description |
At least |
At most |
|---|---|---|---|
(…)? |
Element is optional. |
0 |
1 |
(…)+ |
Element occurs at least once. |
1 |
- |
(…)* |
Element can repeat more than once. |
0 |
- |
(…|…) |
Select one element |
N/A |
N/A |
Example
<x:test
req=
( opt= )?
>
<y:something/>
( <y:else/> )*
</x:text>
defines an element x:text which has a required attribute req= and an optional attribute opt=. It always contains an subelement <y:something> and zero, one or more <y:else> elements.