|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Basic Queries related to XSD |
« View previous topic :: View next topic » |
Author |
Message
|
nikhilsharma |
Posted: Wed Jul 01, 2009 10:41 pm Post subject: Basic Queries related to XSD |
|
|
Apprentice
Joined: 10 Aug 2007 Posts: 28
|
Hi
I have a basic queries regarding XML schema documents (XSDs).
1) What is XSD
2) Why we use it
3) what is the structure of xsd
Please help me to resolve these basic queries _________________ Nikhil |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 01, 2009 10:56 pm Post subject: Re: Basic Queries related to XSD |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
nikhilsharma wrote: |
Please help me to resolve these basic queries |
There are any number of websites that can answer you. A trip to your local (or online) bookstore will also yield a number of useful volumes.
As you say, basic queries. Basic answers:
1) The successor to DTD in describing XML
2) The same as you'd use DTD. Research the difference between well formed XML & valid XML
3) Too complex to discuss here. I have a book that runs to 400 pages answering that. Though it is a bit wordy, and has examples & diagrams. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 01, 2009 11:05 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Moved to general section _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
nvenkatesh |
Posted: Wed Jul 01, 2009 11:37 pm Post subject: |
|
|
Apprentice
Joined: 29 Jan 2007 Posts: 45
|
Hi,
To explain in simple words,
1) What is XSD
If you know object oriented programming like C++ & Java, XSD to XML is a relation similar to that of a class to objects. XSD is like a class which describes about the XML which can be created out of it.
If you dont know about the object oriented programming, Consider a design of a car which is available in your hand. The real car which you see in the road which follows the design in your hand is the XML and the design itself which you hold in the paper is the XSD. Many cars are created out of the design. Likewise XML's can be created out of XSD.
An important point to note here is XSD is itself a XML.
2) Why we use it
It is used to describe and validate a given XML. Suppose your application accepts only integers, obviously you cannot pass a string. An XSD schema is like an integer, string, classes, etc which acts as a blueprint for the type of XML you expect as input (or output) as per your application needs.
3) what is the structure of xsd
There are many car designs available in this world, similarly you can create structures of XSD which suits your needs. If you want a basic tutorial on XSD structures follow this link http://www.w3schools.com/Schema/. If you need the internet standards followed for XSD structures follow this link http://www.w3.org/TR/xmlschema-1/
Thanks,
Venkatesh |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|