That's great. Put tones of repeating tags inside the file and make it
huge and now everybody is saying how to make it small with
Gzip/Binary,...
Third field (between delimiters; whatever it is) is phone number. Any
file has File Spec Document (unless you XML lovers has replaced it with
some XML equivalent).
When the sender and receiver are agreed on format there is no need to
repeat labels.
XML isn't particularly useful for the original sender and receiver.
They would probably be better off using a binary format. It is useful
for the third party who wants his product to interact or compete with
the software used by sender and receiver and therefore needs to
reverse engineer the protocol being used between them. In this
context, a high level of protocol redundancy is extremely useful since
it makes it reasonably easy for a human to work out what is going on
so that he can replicate it.
This is part of the same philosophy that made the Internet so big in
the first place: simple protocols that anyone could understand and
hook into. SMTP isn't a very good protocol by any stretch of the
imagination, but it is _simple_ and you can very easily hook into it
to make it do the things _you_ want it to do. If SMTP had been
ASN.1-based, chances are X.400 or something would have won the email
protocol wars because only professionals would have bothered extending
SMTP or creating cheap (free) MTAs, mail clients, etc.
XML may be a resource hog, it may be absolutely preposterous from an
information theory standpoint and it may have accumulated a shedload
of idiosyncrasies over time, but it does help keep technology and
protocols accessible to hobbyists and starting programmers. This is
highly useful in itself and might very well be enough to justify its
widespread adoption.
I am still saying I am %100 with you all that IF you are sending data
in small volume and/or receiver doesn't know about the file format
XML is the best solution. But use it as a tool to fix any problems is
going too far.
I tend to bring up my "XML-based streaming video" horror scenario in
these debates just to point out that XML should be used with some
caution:
<video-frame number="1654392">
<line number="1">
<pixel number="1">
<colour red="0" green="14" blue="200"/>
</pixel>
<pixel number="2">
<colour red="0" green="13" blue="198"/>
</pixel>
<pixel number="3">
<colour red="3" green="12" blue="197"/>
</pixel>
<!-- more pixels . . -->
</line>
<!-- more lines ... -->
</video-frame>
_Now_ we're talking broadband
Cheers
Bent D