Home Products Consulting About Us White Papers Careers Contact Us Tutorials
 

 Download Delve® SOA Fast-Prototyping Toolkit (Beta 1.0)

Tutorials - How To Declare an XML Element with Properties
Page 1 of 2

The XML-Schema associates a set of properties with each XML declaration. An example of such a property is “minOccurs,” which represents the minimum number of times an element may occur under a parent element. XML-Schema assigns default to each property, and usually these are good enough, but every now and then it’s necessary to override the defaults and assign properties explicit values. In this lesson, we’ll take a look at how this can be accomplished.

We can declare an element’s property values using a verbose declaration form that starts with the keyword “elementd,” followed by the name of the element being declared. The declaration must be terminated with “end” statement.

 

 

The element “graph-points” is defined as occurring between three and ten times (inclusive). This means that whenever this element is encountered we can be sure that it will show up at least three times, and no more than ten times.


 Download Delve® SOA Fast-Prototyping Toolkit (Beta 1.0)
Next Step

Move On To Next Step - "Reusing an Element Declaration with ‘Ref’"

Read a Detailed Product Description

Read About Delve and XML-Schema in Detail

Browse Product White Papers

 
Home Products Consulting About Us White Papers Careers Contact Us Tutorials