XmlSchemaValidator.SourceUri Property

 

Gets or sets the source URI for the XML node being validated.

Namespace:   System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

public Uri SourceUri { get; set; }

Property Value

Type: System.Uri

A Uri object representing the source URI for the XML node being validated; the default is null.

  • The source URI is reported by any XmlSchemaValidationException thrown during the validation process.

  • If the SourceUri property is not set, the file name for the XML document is Empty in validation error messages.

.NET Framework
Available since 2.0
Return to top
Show: