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

Workshop  |  XML (Extensible Markup Language)

Schema Element


Identifies the start of a schema definition.

Syntax

<Schema
    name="schema-name" 
    xmlns="namespace" >

Attributes

name
Name of the schema.
xmlns
One or more namespaces for use with the schema.

Element Information

Number of occurrences 1
Parent elements (No parent elements)
Child elements AttributeType, ElementType
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

The Schema element is the document element (the highest-level element) in a schema definition.

The namespaces specified using the xmlns attribute must include the namespace for the schema-defining elements (Schema, ElementType, and so on). Any prefix can be used, but it is convenient to make the Schema namespace the default namespace to avoid having to use a prefix on every XML Schema element.

The Schema document element in an XML Schema should also contain namespace declarations for any other schemas, such as the namespace that defines the built-in data types for XML Schema.

Example


<Schema name="fooSchema" xmlns="urn:schema-microsoft-com:xml-data"
                         xmlns:dt="urn:schema-microsoft-com:datatypes">
  <!-- schema goes here -->
</Schema>

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