473,385 Members | 1,732 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,385 software developers and data experts.

Purpose of xml

63
Hi guys

I got a simple doubt.What is the main purpose of Xml?
Pls tell.

Thanks in advance bye Paulson.
May 10 '07 #1
4 1640
dip_developer
648 Expert 512MB
Hi guys

I got a simple doubt.What is the main purpose of Xml?
Pls tell.

Thanks in advance bye Paulson.
data exchange between systems is a critical job as you know thousands of different systems are connected in the world of internet.All formats of data are not supported in all these machines......so a human understandable(as well as machine understandable) simple format of data transfer was needed across different systems....

primary purpose of XML is to facilitate the sharing of data across different information systems, particularly via the Internet.
May 10 '07 #2
Paulson
63
data exchange between systems is a critical job as you know thousands of different systems are connected in the world of internet.All formats of data are not supported in all these machines......so a human understandable(as well as machine understandable) simple format of data transfer was needed across different systems....

primary purpose of XML is to facilitate the sharing of data across different information systems, particularly via the Internet.
Hi Dip

Ok I understand that much,but let me ask you this is possible thru databases,ok if all systems do not support browsers at least thru html isn't it possible?My doubt may seem stupid but pls dont feel bad.I just need to get the real meaning.Anyway thanks for your reply.

Thanks in advance bye Paulson
May 10 '07 #3
kenobewan
4,871 Expert 4TB
Please rephrase your question clearly. Thanks.
May 10 '07 #4
Frinavale
9,735 Expert Mod 8TB
Hi Dip

Ok I understand that much,but let me ask you this is possible thru databases,ok if all systems do not support browsers at least thru html isn't it possible?My doubt may seem stupid but pls dont feel bad.I just need to get the real meaning.Anyway thanks for your reply.

Thanks in advance bye Paulson
HTML is a mark up language that is used to identify what should be displayed in web browsers and how.

XML is a mark up language that allows you define your own mark up schema in order to define classes (mostly) that can be used by programs written in any language.

For instance.

You may write up an XML Schema that describes a Person.
This Schema is like a blueprint, or shell, or design that describes what makes up a Person.
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0"?>
  2. <xs:schema>
  3.  
  4. <xs:element name="Person">
  5.     <xs:complexType>
  6.       <xs:sequence>
  7.     <xs:element name="eyeColour" type="xs:string"/>
  8.     <xs:element name="height" type="xs:string"/>
  9.     <xs:element name="favoriteActivities" >
  10.         <xs:cpmplexType>
  11.                 <xs:element name="activity" type="xs:string" maxOccurs="10" minOccurs="0" />
  12.             </xs:complexType>
  13.       </xs:sequence>
  14.     </xs:complexType>
  15. </xs:element>
  16.  
  17. </xs:schema>
  18.  

Based on that Schema you may create a XML file that describes a Person:
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0"?>
  2.  
  3. <note xmlns="http://www.myNamespace.com"
  4. xmlns:xsi="..."
  5. xsi:schemaLocation="hhttp://www.hypothetical/locationOfXmlSchema person.xsd">
  6.  
  7. <person>
  8.     <eyeColour> blue </eyeColour>
  9.     <height> 5' 6" </height>
  10.      <favoriteActivities>
  11.          <activity> music </activity>
  12.          <activity> swimming </activity>
  13.     </favoriteActivities>
  14. </person>
  15.  
Now since you've created an XML Schema that describes the Person you know how the information pertaining to that Person is layed out. You can now parse through the elements and grab the information to use it in your program.

Since XML is not specific to any language, its universal. This means that an XML file describing a Person can be passed form a Java program to a C# program. Based on the Schema you know how to parse the XML file to get the information from them.

HTML is used by web browsers to relay information to humans. XML is used by programs to relay information to other programs.

For more information on XML and Schemas (along with DTD's and much more) you should check out W3C on XML.

Cheers!

-Frinny
May 10 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Mudge | last post by:
This thread is hereby dubbed PHP Purpose, or PHPP. It has the following purposes: 1. To bring together PHPers and programmers around the world to become organized. 2. To dicuss purposes of...
4
by: Dado | last post by:
I lost the point: What is purpose of putting objects to null: If I make a class, JFrame for example, with button which start connection dialog, which is class with connection and statement...
6
by: Maarten van Reeuwijk | last post by:
Hi group, I need to parse various text files in python. I was wondering if there was a general purpose tokenizer available. I know about split(), but this (otherwise very handy method does not...
14
by: copyco | last post by:
Can anyone tell me what the purpose is to adding items such as a VBScript file or HTML document to your VB.NET project? Once you have these things added, how to you access them and use them in...
0
by: Irfy | last post by:
Could someone elaborate on the purpose and concrete usage scenarios of references to functions. What can references to functions do that pointers to functions cannot. Why are they in C++? A swap...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.