XmlSchemaReferenceException Class

Represents errors reported by the XmlSchemaSetBuilder when a call to XmlSchemaSetBuilder.Compile reports errors.

Namespace: Microsoft.VisualStudio.XmlEditor
Assembly: Microsoft.VisualStudio.XmlEditor (in Microsoft.VisualStudio.XmlEditor.dll)


Dim instance As XmlSchemaReferenceException


<SerializableAttribute> _
Public Class XmlSchemaReferenceException
    Inherits Exception
public class XmlSchemaReferenceException : Exception
public ref class XmlSchemaReferenceException : public Exception
/** @attribute SerializableAttribute() */ 
public class XmlSchemaReferenceException extends Exception
public class XmlSchemaReferenceException extends Exception


When a call to XmlSchemaSetBuilder.Compile reports a resolution error, it is useful for applications to understand exactly which XmlSchemaSetBuilder.Sources collection caused the error. An XmlSchemaReferenceException is reported for each XmlSchemaReference in the Sources collection that directly or indirectly references a schema that resulted in resolution errors.

As an example, consider a schema attempting to include xsdtest1.xsd, which in turn includes xsdtest2.xsd. Suppose that xsdtest2.xsd includes xsdtest3.xsd and xsdtest3.xsd includes unknownlocation.xsd. A FileNotFound exception will be reported, because unknownlocation.xsd was not found. The raised XmlSchemaReferenceException will point to the original XmlSchemaReference for xsdtest1.xsd, to inform the user that this reference resulted in down-stream errors.

Inheritance Hierarchy


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000

Target Platforms

See Also


XmlSchemaReferenceException Members
Microsoft.VisualStudio.XmlEditor Namespace

Build Date: