cancel
Showing results for 
Search instead for 
Did you mean: 

Difference/relationship between XML and XSD

Former Member
0 Kudos

Hi All,

Correct me if i am wrong,

When we create a source and a target datatype in IR automatically objects will be created in XSD.

The same way it does when we create message type.

In message mapping, We map source and target message type and when we test with sample data, we can view source and target in xml

My question is what is the difference/relationship between XML and XSD ?

Thanks,

ss

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Basically an XSD file defines how the XML file is going to look like.

So an XSD or Schema file, defines the structure of the XML file. So it will define what the possible fields are and what size they are going to be.

An XML file, is the file that contains the information and is created in the format of the XSD file.

Hope that this helps,

Thanks,

Miguel

Answers (4)

Answers (4)

agasthuri_doss
Active Contributor
0 Kudos

Hi SS,

To exchange data between such systems over the Internet.Converting the data to XML can greatly reduce this complexity and create data that can be read by many different types of applications.

The XML Schema language is also referred to as XML Schema Definition (XSD).

This will help you

http://www.w3schools.com/dtd/dtd_intro.asp

http://www.w3schools.com/schema/default.asp

Regards

Agasthuri Doss

Shabarish_Nair
Active Contributor
0 Kudos

XSD is an XML Schema and is successor of DTD.

It's purpose is to describe and validate the data that a XML Document holds.

Ref: http://www.w3schools.com/schema/default.asp

former_member192798
Active Contributor
0 Kudos

Hi,

XML (Extensible Markup Language) is a W3C initiative that allows information and services to be encoded with meaningful structure and semantics that computers and humans can understand. XML is great for information exchange, and can easily be extended to include user-specified and industry-specified tags.

Whereas

An XML Schema Definition (XSD) is an instance of an XML schema written in the XML Schema language. An XSD defines a type of XML document in terms of constraints upon what elements and attributes may appear, their relationship to each other, what types of data may be in them, and other things. It can be used with validation software in order to ascertain whether a particular XML document is of that type, and to produce a Post-Schema Validation Infoset.

I hope this clarifies.

Regards.

Praveen

MichalKrawczyk
Active Contributor
0 Kudos

hi Praveen,

please give a link to the source if you copy&paste

and use quotes " "

as the test you copy & paste might be copyright protected

Regards,

michal

former_member192798
Active Contributor
0 Kudos

Hi Michal,

Thanks and I will surely follow hereinafter.

Regards.

Praveen

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>>My question is what is the difference/relationship between XML and XSD ?

XSD is an XML document's description

(with attributes etc)

XML is like "an instance" of the XSD

as XML uses the rules defined in the XSD

XSD

http://en.wikipedia.org/wiki/XML_Schema_Definition

Regards,

michal