Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C#, XML Schema and XML file
Message
 
À
17/11/2003 12:02:38
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
Information générale
Forum:
ASP.NET
Catégorie:
XML
Divers
Thread ID:
00850681
Message ID:
00850704
Vues:
12
>Hello,
>
>I have created an XML schema.
>Now I am trying to figure out a way to validate my XML file against the schema... I am not sure where to start..
>
>I have a few questions:
>Does the XML file have to be formatted exactly like my XML schema?
>Can I validate the data as well as the structure of the XML file at once?
>
>Does anyone have any ideas?
>
>Thanks,
>
>Alvin


The XML doesn't have to be formatted exactly, but it depends on your schema, you can specific how many max or minimum occurances of an element are required. You can have the parser be strict about data, or try to convert. It depends on what XML parser you are using. If you using the MS parser, check out the XMLReadMode, when reading in a XML into a dataset. You can have the parser be as strict as you want.

Morgan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform