Assembly: System.Xml (in system.xml.dll)
The schema to reprocess.
Return ValueAn XmlSchema object if the schema is a valid schema. If the schema is not valid and a ValidationEventHandler is specified, a null reference (Nothing in Visual Basic) is returned and the appropriate validation event is raised. Otherwise, an XmlSchemaException is thrown.
The Reprocess method should be used after a schema in the XmlSchemaSet has been modified, after the XmlSchemaSet has performed compilation.
The following example illustrates reprocessing a schema added to the XmlSchemaSet. After the XmlSchemaSet is compiled using the Compile method, and the schema added to the XmlSchemaSet is modified, the IsCompiled property will be set to true, even though a schema in the XmlSchemaSet has been modified. Calling the Reprocess method performs all the preprocessing performed by the Add method and sets the IsCompiled property to false.
XmlSchemaSet schemaSet = new XmlSchemaSet(); XmlSchema schema = schemaSet.Add("http://www.contoso.com/books", "http://www.contoso.com/books.xsd"); schemaSet.Compile(); XmlSchemaElement element = new XmlSchemaElement(); schema.Items.Add(element); element.Name = "book"; element.SchemaTypeName = new XmlQualifiedName("string", "http://www.w3.org/2001/XMLSchema"); schemaSet.Reprocess(schema);
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.