>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement