Hi, i'm trying to validate a doc.xml against a schema XSD this way, but
it doesn't validate anithing :
Dim xrs As New XmlReaderSettings
xrs.Schemas.Add("urn:mediatheque-lrvb8", "schema.xsd")
xrs.ValidationType = ValidationType.Schema
AddHandler xrs.ValidationEventHandler, AddressOf Validation
Dim xr As XmlReader = XmlReader.Create("doc.xml", xrs)
Using xr
Do While xr.Read
Loop
End Using
The EventHandler is never called : i just put any tag, just keeping the
xml doc well formed and nothing appens ?
Thanks and best regards.
Gilles
*** Sent via Developersdex http://www.developersdex.com ***