473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Clarification on XML schema ?????

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
Feb 21 '06 #1
4 1051
Validation. You can make sure you get and make documents in right format.

Eliyahu

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:7C**********************************@microsof t.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

Feb 21 '06 #2

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" <se************@discussions.microsoft.com> wrote in
message news:7C**********************************@microsof t.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


Feb 21 '06 #3
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" <se************@discussions.microsoft.com> wrote in
message news:54**********************************@microsof t.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" <se************@discussions.microsoft.com> wrote in
message news:7C**********************************@microsof t.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


Feb 21 '06 #4
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 ?

"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" <se************@discussions.microsoft.com> wrote in
message news:54**********************************@microsof t.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" <se************@discussions.microsoft.com> wrote in
message news:7C**********************************@microsof t.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


Feb 22 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: wooks | last post by:
<?xml version='1.0'?> <userlogin xmlns="urn:faster:userlogin" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <login>mick</login> <password>brown</password> </userlogin> Above is my...
0
by: C. M. Sperberg-McQueen | last post by:
wooks (wookiz@hotmail.com) wrote: > <?xml version='1.0'?> > <userlogin xmlns="urn:faster:userlogin" > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> > <login>mick</login> > ...
4
by: Gordon Dickens | last post by:
I have target xml to generate from schema. All of the XML instances have the same global element i.e. <base>. I would like to combine all of the schemas into a single schema where I could...
4
by: Ian Rutgers | last post by:
If I am using an DTD in an xml file I know to declare an entity I would enter; <!DOCTYPE letter > How and where would I declare the entity? (Sorry for the silly question) Thank you,
3
by: Mike Bird | last post by:
I have an XML document that contains the xsi:noNamespaceSchemaLocation attribute giving the location of the XSD file to use for validating it. I created an XmlReader on the XML file. I then...
0
by: Rajesh Jain | last post by:
I Have 2 separate schemas. --------------Schema 1 is defined as below----------- <xs:schema targetNamespace="http://Schemas/1" xmlns="http://Schemas/1" xmlns:xs="http://www.w3.org/2001/XMLSchema"...
8
by: Sai Kit Tong | last post by:
In the article, the description for "Modiy DLL That Contains Consumers That Use Managed Code and DLL Exports or Managed Entry Points" suggests the creation of the class ManagedWrapper. If I...
8
by: VK | last post by:
I'm a bit confused about ECMAScript docs. Can I legally change it format (say from .pdf to .html or .doc) or publish it on my web-site? ECMA provides a free of charge pdf version here:...
0
by: Derek | last post by:
I am creating an intranet using Visual Web Developer Express Edition. Everything has been working OK until yesterday when I started getting 62 messages all beginning "Could not find schema...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.