Microsoft HomeproductssearchsupportshopWrite Us   Microsoft Home
Magazine
 |  Community
 |  Workshop
 |  Tools & Samples
 |  Training
 |  Site Info

Workshop  |  XML (Extensible Markup Language)

Element Element


Refers to a declared element type that can appear within the scope of the named ElementType element.

Syntax

<element
    type="element-type" 
    [minOccurs="{0 | 1}"] 
    [maxOccurs="{1 | *}"] 
>

Attributes

type
Name of an ElementType element defined in this schema (or another schema indicated by the specified namespace). The supplied value must correspond to the name attribute on the ElementType element. Note that the type can include a namespace prefix.
minOccurs
Optional. Minimum number of times the element can occur on the element. The following values can be assigned to this attribute.
0 When the minimum value is zero, the specified element is not required; the element is optional.
1 The specified element must occur at least once.
maxOccurs
Optional. Maximum number of times the element can occur on the element. The following values can be assigned to this attribute.
1 Can occur at most once.
* Unlimited number of occurrences.

Element Information

Number of occurrences Number of element types defined in the schema.
Parent elements ElementType, group
Child elements (No child elements)
Requires closing tag Yes. XML Schema is an XML grammar and, like all XML grammars, all tags must have closing tags to satisfy the definition of well-formed.

Remarks

ElementType declarations might constrain the content and/or attributes that appear in elements of the named type by referring to other element type or attribute type declarations.

The minOccurs and maxOccurs attributes have the default value "1". An element with neither attribute must appear once and only once in a content model.


Does this content meet your programming needs? Write us!

Back to topBack to top

© 1998 Microsoft Corporation. All rights reserved. Terms of use.

 

Magazine Home
Ask Jane
DHTML Dude
Extreme XML
For Starters
More or Hess
Servin' It Up
Site Lights
Web Men Talking
Member Community Home
Benefits: Freebies & Discounts
Benefits: Promote Your Site
Benefits: Connect with Your Peers
Benefits at a Glance
Online Special-Interest Groups
Your Membership
SBN Stores
Join Now
Workshop Home
Essentials
Content & Component Delivery
Component Development
Data Access & Databases
Design
DHTML, HTML & CSS
Extensible Markup Language (XML)
Languages & Development Tools
Messaging & Collaboration
Networking, Protocols & Data Formats
Reusing Browser Technology
Security & Cryptography
Server Technologies
Streaming & Interactive Media
Web Content Management
Workshop Index
Tools & Samples Home
Tools
Samples, Headers, Libs
Images
Sounds
Style Sheets
Web Fonts
Training Home
SBN Live Seminars
SBN Live Chats
Courses
Peer Support
CD-ROM Training
Books & Training Kits
Certification
SBN Home
New to SBN?
What's New on SBN
Site Map
Site Search
Glossary
Write Us
About This Site