Class XmlSchema (Excel VBA)

The class XmlSchema represents an XML schema contained by an XmlMap object.

Set

To use a XmlSchema class variable it first needs to be instantiated, for example

Dim strIndex As String: strIndex = 
Dim xss As XmlSchemas: Set xss = 
Dim xmlschXmlSchema As XmlSchema
Set xmlschXmlSchema = xss(Index:=strIndex)

The following procedures can be used to set variables of type XmlSchema: XmlSchemas.Item and XmlMap.Schemas

For Each

Here is an example of processing the XmlSchema items in a collection.

Dim xmlmp As XmlMap: Set xmlmp = 
Dim xmlschSchema As XmlSchema
For Each xmlschSchema In xmlmp.Schemas
	
Next xmlschSchema

Name

Returns a String value that represents the friendly name used to identify an XML schema in an XmlMap object.

Namespace

Returns an XmlNamespace object that represents the target namespace for the specified schema.

Parent

Returns the parent object for the specified object. Read-only.

XML

Returns a String value that represents the content of the specified schema.

XmlSchemas.Count

Returns a Long value that represents the number of objects in the collection.

XmlSchemas.Item

Returns a single XmlSchema object from the collection.

Syntax : expression.Item (Index)

Index: The name or index number of the object.

XmlSchemas.Parent

Returns the parent object for the specified object. Read-only.