XmlSchemaAttributeGroup Class represents attributeGroup element from XML Schema
Option Strict On Option Explicit On Imports System Imports System.Xml Imports System.Xml.Schema Class XMLSchemaExamples Public Shared Sub Main() Dim schema As New XmlSchema() Dim myAttributeGroup As New XmlSchemaAttributeGroup() schema.Items.Add(myAttributeGroup) myAttributeGroup.Name = "myAttributeGroup" Dim someattribute1 As New XmlSchemaAttribute() myAttributeGroup.Attributes.Add(someattribute1) someattribute1.Name = "someattribute1" someattribute1.SchemaTypeName = New XmlQualifiedName("integer", "http://www.w3.org/2001/XMLSchema") Dim myElementType As New XmlSchemaComplexType() schema.Items.Add(myElementType) myElementType.Name = "myElementType" Dim myAttributeGroupRef As New XmlSchemaAttributeGroupRef() myElementType.Attributes.Add(myAttributeGroupRef) myAttributeGroupRef.RefName = New XmlQualifiedName("myAttributeGroup") Dim myAttributeGroupA As New XmlSchemaAttributeGroup() schema.Items.Add(myAttributeGroupA) myAttributeGroupA.Name = "myAttributeGroupA" Dim someattribute10 As New XmlSchemaAttribute() myAttributeGroupA.Attributes.Add(someattribute10) someattribute10.Name = "someattribute10" someattribute10.SchemaTypeName = New XmlQualifiedName("integer", "http://www.w3.org/2001/XMLSchema") End Sub End Class