AddressOf ValidationCallbackOne : XML Validation « XML « VB.Net






AddressOf ValidationCallbackOne

  
Option Explicit On
Option Strict On

Imports System
Imports System.Xml
Imports System.Xml.Schema

Class XMLSchemaExamples
    Public Shared Sub Main()
        Dim schema As New XmlSchema()

        Dim schemaSet As New XmlSchemaSet()
        AddHandler schemaSet.ValidationEventHandler, AddressOf ValidationCallbackOne

        schemaSet.Add(schema)
        schemaSet.Compile()

    End Sub 
    Public Shared Sub ValidationCallbackOne(ByVal sender As Object, ByVal args As ValidationEventArgs)
        Console.WriteLine(args.Message)
    End Sub 
End Class 

   
    
  








Related examples in the same category

1.Validate XML document with Validation Error HandlerValidate XML document with Validation Error Handler
2.Console Validator
3.Handle validation event
4.Validate contosoBooks.xml
5.Validating Modified xml
6.Illustrates reading and writing XML schemas from and to a file.
7.XmlSchema validation call back