Export (0) Print
Expand All

XML Schemas and the XML Designer

Visual Studio .NET 2003

XML Schemas are combinations of element, attribute, type, and group definitions; whereas ADO.NET typed datasets are classes that are defined by XML Schemas (.xsd files). XML Schemas in Visual Studio use the XML Schema definition language (XSD) that conforms to the recommendation for XML Schema of the World Wide Web Consortium (W3C). For more information about XML Schema, see XML Schema Reference (XSD).

This section will explain how to add new schema (.xsd) files to your project and how to create the individual pieces that XML Schemas are constructed of.

In This Section

XML Elements, Attributes, and Types
Provides an overview of the common elements that are used in constructing XML Schemas.
Named vs. Unnamed Types and Groups
Describes the different ways of defining types and groups in XML Schemas and when to use one practice over the other.
Creating Elements in XML Schemas
Describes how to use the XML Designer to declare elements.
Creating Attributes in XML Schemas
Describes how to use the XML Designer to declare attributes.
User-Defined Simple Types in XML Schemas
Provides an overview of what simple types are, how facets are used, and how the underlying XML code is visually represented in the XML Designer.
Creating Simple XML Types
Describes how to use the XML Designer to define named simple types.
Creating Unnamed Simple Types
Describes how to use the XML Designer to define unnamed simple types.
Complex Types in XML Schemas
Provides an overview of what complex types are, provides an example demonstrating a typical use of a complex type, and how the underlying XML code is visually represented in the XML Designer.
Creating Complex XML Types
Describes how to use the XML Designer to define named complex types.
Creating Unnamed Complex Types
Describes how to use the XML Designer to define unnamed complex types.
Element Groups
Provides an overview of the different groups in XML Schemas, the reason you would use each group, and how the underlying XML code is visually represented in the XML Designer.
Creating Element Groups in XML Schemas
Describes how to use the XML Designer to define the different types of element groups.
Attribute Groups
Explains what attribute groups are in XML Schemas, and how the underlying XML code is visually represented in the XML Designer.
Creating Attribute Groups in XML Schemas
Describes how to use the XML Designer to define attribute groups.
Keyboard Shortcuts for the XML Designer
Describes how to use the keyboard to navigate the XML designer.

Related Sections

XML Schemas and Data
Introduces topics and sections that describe how to use the XML Designer to work with XML Schemas and datasets.
Creating XML Schemas and Datasets
Introduces topics that describe the different ways that schemas and datasets can be created using the XML Designer as well as describing the connection between datasets and schemas.
Relational Data in XML Schemas
Introduces topics that describe the different options in XML Schemas for representing relational data.
XML Files
Introduces topics that explain how to use the XML Designer when working with XML documents.
Introduction to Data Access with ADO.NET
Provides a high level overview of the most important concepts of data access in ADO.NET.
Introduction to Datasets
Provides an overview of what ADO.NET datasets are, how they can be typed or untyped, what they are used for, and how they are structured.
XML in Visual Studio
Provides links to a variety of topics about XML.
World Wide Web Consortium (W3C) Web site (http://www.w3.org/)
Links to the XML Schema primer and other XML info posted by the W3C.
XML Developer Center on MSDN Online (http://msdn.microsoft.com/xml/default.asp)
Provides various resources about XML.
XML Schema Reference (XSD)
Provides reference topics for schema elements and data types.
XML Designer
Overview of the XML Design tool in Visual Studio.
Show:
© 2014 Microsoft