Home All Groups Group Topic Archive Search About

Clarification on XML schema ?????

Author
21 Feb 2006 12:55 PM
serge calderara
Dear all,

What is the real puprose on using an XML schema (XSD) ???
This is still a bit unclear for me, is it just in case we would like to
tranmit data to an other applciation and rebuild a dataset based on that
schema or is there other reason ?


thnaks for your reply
regards
serge

Author
21 Feb 2006 1:21 PM
Eliyahu Goldin
Validation. You can make sure you get and make documents in right format.

Eliyahu

Show quoteHide quote
"serge calderara" <sergecalder***@discussions.microsoft.com> wrote in
message news:7C8352B0-8968-4753-94CC-90784DDE2007@microsoft.com...
> Dear all,
>
> What is the real puprose on using an XML schema (XSD) ???
> This is still a bit unclear for me, is it just in case we would like to
> tranmit data to an other applciation and rebuild a dataset based on that
> schema or is there other reason ?
>
>
> thnaks for your reply
> regards
> serge
Are all your drivers up to date? click for free checkup

Author
21 Feb 2006 2:10 PM
serge calderara
Ok but if I am using XML document for instance just to provide data to an
outside world and I just need to read them , do I need that schema any way ?

I understand that schema is usufull when you are writting data in order that
they match with the format you are expected, but when you simply wnat to read
them I do not think that schema is a must ..

What is your opinion ?

regards
Show quoteHide quote
"Eliyahu Goldin" wrote:

> Validation. You can make sure you get and make documents in right format.
>
> Eliyahu
>
> "serge calderara" <sergecalder***@discussions.microsoft.com> wrote in
> message news:7C8352B0-8968-4753-94CC-90784DDE2007@microsoft.com...
> > Dear all,
> >
> > What is the real puprose on using an XML schema (XSD) ???
> > This is still a bit unclear for me, is it just in case we would like to
> > tranmit data to an other applciation and rebuild a dataset based on that
> > schema or is there other reason ?
> >
> >
> > thnaks for your reply
> > regards
> > serge
>
>
>
Author
21 Feb 2006 2:55 PM
Eliyahu Goldin
That's right, schema is not a must. You make your choice depending on your
preferences, the same as with all other validations. You may choose to be
sure that what you get is already validated and then you don't have to care
much about exceptions in the code. Or, alternatively, you may choose not to
validate your input and take care of exceptions in the code. Of cause you
can choose also partial validation.

Eliyahu

Show quoteHide quote
"serge calderara" <sergecalder***@discussions.microsoft.com> wrote in
message news:5410ECD4-9EF2-4EF8-8C5C-8C18DB9D1900@microsoft.com...
>
> Ok but if I am using XML document for instance just to provide data to an
> outside world and I just need to read them , do I need that schema any way
> ?
>
> I understand that schema is usufull when you are writting data in order
> that
> they match with the format you are expected, but when you simply wnat to
> read
> them I do not think that schema is a must ..
>
> What is your opinion ?
>
> regards
> "Eliyahu Goldin" wrote:
>
>> Validation. You can make sure you get and make documents in right format.
>>
>> Eliyahu
>>
>> "serge calderara" <sergecalder***@discussions.microsoft.com> wrote in
>> message news:7C8352B0-8968-4753-94CC-90784DDE2007@microsoft.com...
>> > Dear all,
>> >
>> > What is the real puprose on using an XML schema (XSD) ???
>> > This is still a bit unclear for me, is it just in case we would like to
>> > tranmit data to an other applciation and rebuild a dataset based on
>> > that
>> > schema or is there other reason ?
>> >
>> >
>> > thnaks for your reply
>> > regards
>> > serge
>>
>>
>>
Author
22 Feb 2006 11:08 AM
serge calderara
OK lets say that I uinsg shema in my xml file. How then you validate that the
entry is corresponding to what is expected ?

When you do such thing I guess the purpose is to write directly in the xml
file or do you usually pass through a dataset object first ?

Show quoteHide quote
"Eliyahu Goldin" wrote:

> That's right, schema is not a must. You make your choice depending on your
> preferences, the same as with all other validations. You may choose to be
> sure that what you get is already validated and then you don't have to care
> much about exceptions in the code. Or, alternatively, you may choose not to
> validate your input and take care of exceptions in the code. Of cause you
> can choose also partial validation.
>
> Eliyahu
>
> "serge calderara" <sergecalder***@discussions.microsoft.com> wrote in
> message news:5410ECD4-9EF2-4EF8-8C5C-8C18DB9D1900@microsoft.com...
> >
> > Ok but if I am using XML document for instance just to provide data to an
> > outside world and I just need to read them , do I need that schema any way
> > ?
> >
> > I understand that schema is usufull when you are writting data in order
> > that
> > they match with the format you are expected, but when you simply wnat to
> > read
> > them I do not think that schema is a must ..
> >
> > What is your opinion ?
> >
> > regards
> > "Eliyahu Goldin" wrote:
> >
> >> Validation. You can make sure you get and make documents in right format.
> >>
> >> Eliyahu
> >>
> >> "serge calderara" <sergecalder***@discussions.microsoft.com> wrote in
> >> message news:7C8352B0-8968-4753-94CC-90784DDE2007@microsoft.com...
> >> > Dear all,
> >> >
> >> > What is the real puprose on using an XML schema (XSD) ???
> >> > This is still a bit unclear for me, is it just in case we would like to
> >> > tranmit data to an other applciation and rebuild a dataset based on
> >> > that
> >> > schema or is there other reason ?
> >> >
> >> >
> >> > thnaks for your reply
> >> > regards
> >> > serge
> >>
> >>
> >>
>
>
>

Bookmark and Share