Page view counter

These tutorials demonstrate selected features in ASP.NET version 2.0, but they are compatible with later versions of ASP.NET as well. For the current documentation, see the ASP.NET portal on the MSDN Web site.

 

 

   Welcome   |   ASP.NET   |   Web Services   |   Class Browser   
  |   I want my samples in...      

How Do I...? Common Tasks QuickStart Tutorial

How Do I...Merge Multiple Schemas into a Single Logical Schema?

The XmlSchemaSet class represents a cache of XML Schemas. It allows you to compile multiple schemas for the same target namespace into a single logical schema.

VB MultipleSchemas.exe
View Source

This sample adds two schemas with the same target namespace to the XmlSchemaSet. When the Compile method is called, the two physical schemas are compiled to form one logical schema. The logical schema can then be used for schema validation.

		
schemaSet.Add("http://www.example.org", "..\book.xsd")
schemaSet.Add("http://www.example.org", "..\author.xsd")
schemaSet.Compile()
VB



Microsoft .NET Framework SDK QuickStart Tutorials Version 2.0
Copyright � 2005 Microsoft Corporation. All rights reserved.