Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validating
Message
De
17/09/2003 23:57:28
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
Validating
Divers
Thread ID:
00830186
Message ID:
00830186
Vues:
59
The following code suppose to validate and XML file against an existing schema.

Dim fs As New FileStream("XmlFile.xml", FileMode.Open)
Dim vr As New XmlValidatingReader(fs, XmlNodeType.Element, Nothing)
vr.Schemas.Add(Nothing, "XsdFile.xsd")
vr.ValidationType = ValidationType.Schema
While vr.Read()
End While

I noticed that no error is triggered if I change the type of data in the XML file, which means that the validation is not functioning properly.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform