Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C#, XML Schema and XML file
Message
 
To
17/11/2003 12:02:38
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
General information
Forum:
ASP.NET
Category:
XML
Miscellaneous
Thread ID:
00850681
Message ID:
00850704
Views:
11
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform