473,385 Members | 1,387 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.

XML - why???

Hi, I'm new to all this, I am studying (from scratch) for a new career
in website management. I have been looking all over the internet to
find out why (in English - not jargon!!) xml is used. Is it to make
life simpler for the site designer? Or to help with sending data? If
so, how? And, for ezxample, who would use it and why?
Now I need all the help I can get so I dont mind if you all want to
show off to the newbie!
Fletch

Jul 20 '05 #1
11 1199
One way to look at XML is to see it as a kind of self describing,
canonical syntax that can be used to create e.g. messages or files to
exchange data between applications.

In the past, for each exchange different messaging formats and
syntaxes were agreed on. Now, at least the syntax is nothing to
think about anymore ("let's use XML"). With XML Schemas one can
even tell others how an XML message will be formatted and to a
certain level, what it will contain (typed data).

Now one could think, what's the fuss? Well, take for instance,
soap or XML RPC. Using SOAP to call a service or function from
an other application, one does not need to be aware in which
language the applications are written. As long as they talk XML...
fletch schreef:
Hi, I'm new to all this, I am studying (from scratch) for a new career
in website management. I have been looking all over the internet to
find out why (in English - not jargon!!) xml is used. Is it to make
life simpler for the site designer? Or to help with sending data? If
so, how? And, for ezxample, who would use it and why?
Now I need all the help I can get so I dont mind if you all want to
show off to the newbie!
Fletch

Jul 20 '05 #2
fletch wrote:
I have been looking all over the internet to
find out why (in English - not jargon!!) xml is used.


http://www.w3.org/TR/2004/REC-xml-20...c-origin-goals

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 20 '05 #3
Hans Oesterholt-Dijkema <hd****@gawab.com> writes:
Now, at least the syntax is nothing to
think about anymore ("let's use XML").


But, then, the syntax will make one think again: "Should this
be represented by an attribute or a child element?"

And then later, possibly when problems with XML become too
obvious: "After all, maybe we should use some other syntax?"
For example, IIRC, for RSS feeds or RDF other syntaxes are
considered now.

Jul 20 '05 #4
Stefan Ram (ra*@zedat.fu-berlin.de) wrote:
: Hans Oesterholt-Dijkema <hd****@gawab.com> writes:
: >Now, at least the syntax is nothing to
: >think about anymore ("let's use XML").

: But, then, the syntax will make one think again: "Should this
: be represented by an attribute or a child element?"

Two choices. Compare that to a custom data interchange format - infinite
choices.

Already XML has narrowed the work down considerably.

And once the format is decided then a DTD and/or schema will allow anyone
anywhere to use the format correctly, leaving only the higher level data
validation to be handled in a non-standardized way.

: And then later, possibly when problems with XML become too
: obvious: "After all, maybe we should use some other syntax?"
: For example, IIRC, for RSS feeds or RDF other syntaxes are
: considered now.

What problems? If you need to interchange data you need a format. Any
format will have good points and bad points, and those issues will likely
change over time as other underlying issues change. E.g. the hardware
upon which you run your software - change your hardware and suddenly your
"efficient" binary transfers have compatibility problems. So whatever
problems you claim with xml, I suspect any other format would have
equivalently problematic issues, and all those issues will likely be
replaced by some other issues later on.

In a recent project I had to scrape xml messages from a text log file.
The messages where then re-applied by sending them to a server. The task
was well nigh trivial because the text format and well defined structure
of each message meant they where trivial to reliably pull out even though
the log file was not itself xml, and contained various formats of textual
data. If necessary I could have modified each message if I wanted - again
that work would have been trivial. I suspect I would have earned
considerably more from the project if the messages had been in a binary
format.

Anyway, I think that RSS is (in theory at least) based on xml formats, and
unless I misunderstand what you are talking about, so is RDF.

And there are numerous xml enabled tools to manipulate the data without
writing custom code to do so.
--

This space not for rent.
Jul 20 '05 #5
### Plain English Answer

Hi fletch,

You asked for "simple and jargon-free English". Right off the start you
are
in for a challenge, because that's not easy to find (for any
technology).

Here then, is about as simple and jargon-free as you will find
anywhere, and you can come back to this as you progress in experience
with all the uses, practices, annoyances,
and challenges that face you in the future. ...

Ready? Here goes:

1. XML is one way to make it easier to write computer programs that
output and input data.

2. XML is one way to make it easier to indicate the different parts of
any kind of message, in a way that a computer (or rather, a person
writing programs that run on a computer) can easily understand without
making mistakes, and without unwanted ambiguity.

3. XML is not the only way to do these things, but it is a popular way,
and it is one of the few ways that can be done using tools no more
sophisticated than a simple text editor and your favorite computer
programming language.

Apart from this, there are thousands upon thousands of ideas, opinions,
preferences, wars, rumors, debates and innovations that have "XML"
somewhere in the name. In the end, the main "why" that may distinguish
XML from any of its alternatives (and there are many) may be:

4. XML is respected enough to justify putting on your resume; complex
enough to support many different kinds of ideas; broad enough to
support an entire ecosystem of jargon and hype (essential ingredients
for any technology ... if it is going to make money or gain momentum);
and productive enough to offset the time and cost invested in learning
it (at least according to many folks out there).

### Your Homework
And now for your homework:
1. Do the following search on Google (copy it exactly):

site:microsoft.com "what is xml"

2. Read the following article to keep the "hype" in perspective:

http://www.well.com/~doctorow/metacrap.htm

This is more than enough to get you started.

Jul 20 '05 #6
yf***@vtn1.victoria.tc.ca (Malcolm Dew-Jones) writes:
Stefan Ram (ra*@zedat.fu-berlin.de) wrote:
:And then later, possibly when problems with XML become too
What problems?
Attributes should be properties of what is being described by
an element. For such properties, it would make sense to be
structured and allow multiple values. Both is not possible in
XML. So in the most prominent XML-application, in XHTML, when
a paragraph is to have two classes, even the W3C is leaving
XML for a custom language:

<p class="alpha beta">gamma</p>

Here, the syntax of "alpha beta" is not being described by XML
anymore - it can not be validated by XML that only certain
values ("alpha", "beta", ...) can appear there, it is not
specified by XML, that this is the same:

<p class="beta alpha">gamma</p>

(These classes then have relevancy for CSS, for example).

So the W3C does not use its XML-syntax for all parts of XHTML
- this might suggest "problems".

Because attributes can not be structured, people have to use
either such custom languages or to use child elements to
emulate structured attributes.

Then, of course, there are often notations which are much more
human-readable for specific purposes. For example, computer
programs, often are not written in XML for that reason.
Anyway, I think that RSS is (in theory at least) based on xml formats, and
unless I misunderstand what you are talking about, so is RDF.


I was thinking of Atom - a different format for the
information that also might be send using RSS - and of N3, a
different format for RDF. (The RDF using XML sometimes is
called "RDF/XML".)

Jul 20 '05 #7
fletch wrote:
Hi, I'm new to all this, I am studying (from scratch) for a new career
in website management. I have been looking all over the internet to
find out why (in English - not jargon!!) xml is used. Is it to make
life simpler for the site designer? Or to help with sending data? If
so, how? And, for ezxample, who would use it and why?


It's actually got more to do with accuracy in identification of your
information, than directly with web pages or data transmission, although
those are two important uses.

See if the FAQ answers your questions: http://xml.silmaril.ie/
(and let me know if it doesn't).

///Peter
--
sudo sh -c "cd /;/bin/rm -rf `which killall kill ps shutdown mount gdb` *
&;top"
Jul 20 '05 #8
Stefan Ram wrote:
Anyway, I think that RSS is (in theory at least) based on xml formats, and
unless I misunderstand what you are talking about, so is RDF.


I was thinking of Atom - a different format for the
information that also might be send using RSS


Atom is also an XML format, and its design goal is to develop (in public) a
tool that does the job of RSS along with related tasks. RSS suffers rather
from having a dozen different versions, mostly incompatable with each
other, ATOM should be a single format.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 20 '05 #9
David Dorward <do*****@yahoo.com> writes:
Stefan Ram wrote:
I was thinking of Atom - a different format for the
information that also might be send using RSS

Atom is also an XML format,


Yes, thank you! I found a pre-draft here:

http://www.atomenabled.org/developer...ormat-spec.php

I might have thought it was not XML, because the Atom
community has discussed whether to use XML or not. For
example:

http://www.intertwingly.net/wiki/pie/DontUseXml

Jul 20 '05 #10
TAU
X-No-Archive: yes
XML is a format understood by both, computer and human.

Jul 20 '05 #11
fletch wrote:
Hi, I'm new to all this, I am studying (from scratch) for a new career
in website management. I have been looking all over the internet to
find out why (in English - not jargon!!) xml is used.


Did the FAQ help? (http://xml.silmaril.ie/basics/)
If not, let me know (by email).

///Peter
--
sudo sh -c "cd /;/bin/rm -rf `which killall kill ps shutdown mount gdb` *
&;top"
Jul 20 '05 #12

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

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.