Mega Code Archive

 
Categories / VB.Net / XML
 

XmlSchemaAnnotation Class represents the World Wide Web Consortium (W3C) annotation element

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 simpleType As New XmlSchemaSimpleType()         simpleType.Name = "northwestStates"         schema.Items.Add(simpleType)         Dim annNorthwestStates As New XmlSchemaAnnotation()         simpleType.Annotation = annNorthwestStates     End Sub 'Main End Class 'XMLSchemaExamples