Sybase XML manual Defining group particles, Group particles

Models: XML

1 290
Download 290 pages 48.58 Kb
Page 65
Image 65

Chapter 2 Building an XML model

Child elements are linked to their parent element through a group particle.

Defining group particles

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>.

Group particles in

In a model targeted with the XML-Data Reduced language, group particles

XDR files

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:

XSM User's Guide

53

Page 65
Image 65
Sybase XML manual Defining group particles, Group particles, Group particle Value of the order attribute in XDR