For some reason, the schema seems to be empty every time it's loaded. Does
anyone have any ideas?? Thanks!
Here's the code:
Dim xsd As System.Xml.Schema.XmlSchema
Dim io As New System.IO.FileStream(xsdFileName, System.IO.FileMode.Open,
System.IO.FileAccess.Read)
Dim x As New System.Xml.XmlTextReader(io)
xsd = System.Xml.Schema.XmlSchema.Read(x, New
System.Xml.Schema.ValidationEventHandler(AddressOf XsdValidationError))
....
....
....
Public Shared Sub XsdValidationError(ByVal sender As Object, ByVal
args As System.Xml.Schema.ValidationEventArgs)
throw new exception ("blah blah blah...")
End Sub