XML vs. space separated lists

A

AMB

Hi all,

I'm currently working on a large project which uses XML formatted data
to communicate between all the various different systems the project
ties together, apart from one, which communicates via space separated
list.

Obviously, having a space separated list floating around isn't
desirable (it doesn't even support spaces in the data, for one), but I
can't think of a killer reason to convince the owner of that system to
change to XML.

What reasons can you suggest for not using a space separated list, but
XML instead?

Thanks in advance,

AMB
 
J

J??rgen Kahrs

AMB said:
Obviously, having a space separated list floating around isn't
desirable (it doesn't even support spaces in the data, for one), but I

You can use CSV (comma-separated-values) and this will
allow you to have blank spaces in the data. This topic
has been discussed at length varies times in newsgroups
like comp.lang.awk.
can't think of a killer reason to convince the owner of that system to
change to XML.

Automated validation with DTD or Schema. But this requires
much work in detail.
What reasons can you suggest for not using a space separated list, but
XML instead?

You should also ask for killer arguments against the use
of XML. You are one of those who have a *brilliant* solution
first (XML) and then you look for a justification to use
it in some way. You will run into trouble if you force
others to buy your favourite toy.
 
P

Patrick TJ McPhee

% Obviously, having a space separated list floating around isn't
% desirable

That depends a lot on the data. Delimited lists are faster and easier to
write and to read. They take less space. They don't handle binary
data well (but neither does XML), but for textual data, it's always
possible to pick a delimter which doesn't appear in the data (think
FS and RS).

XML handles structured data better and in theory provides unambiguous
character encoding (although in practice this is not always the case).
It provides standard mechanisms for describing the content of a file,
but if the data's structure is amenable to a delimited list, a
plain-language description of the list format will be simpler and equally
useful.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top