Hi All
I'm fairly certain this topic has been discussed before in this forum
before, and I would appreciate your patience in this matter.
I like XML and use it for various things, but haven't been able to
justify its verbose nature especially w.r.t. transmitting information
over the wire. (assuming there is no compression involved)
All I've been able to come up with is "Oh well, the benefits of using
it more than compensate for this trivial drawback!!! " but seriously,
I can't turn a blind eye to the 5 Megs file that I generate every day
to transfer data that I believe is only about 1.5 Megs.
If someone can share some thoughts, experiences, practices that you
have adopted in order to take care of this issue, I will highly
appreciate it.
regards
mick. 7 1552
"Mick" <ob*****************@yahoo.com> wrote in message
news:f8**************************@posting.google.c om... Hi All
I'm fairly certain this topic has been discussed before in this forum before, and I would appreciate your patience in this matter.
I like XML and use it for various things, but haven't been able to justify its verbose nature especially w.r.t. transmitting information over the wire. (assuming there is no compression involved)
All I've been able to come up with is "Oh well, the benefits of using it more than compensate for this trivial drawback!!! " but seriously, I can't turn a blind eye to the 5 Megs file that I generate every day to transfer data that I believe is only about 1.5 Megs.
If someone can share some thoughts, experiences, practices that you have adopted in order to take care of this issue, I will highly appreciate it.
regards mick.
This might not be relevant but I have just moved some data from Access 97
into an XML format. The Access data base was 1.5MB and zipped 0.5MB. In XML
the file is 1.3MB, but zips to less than 0.2MB.
The repetitive nature for XML tags leads to very efficient compression
compared to other formats for storing data. The data as XML zipped is only
5% larger than the same data dumped into a delimited text file and zipped,
but the XML version gives a far better description of the data and is much
easier to handle.
Try comparing your own data XML and another format for size - but compare
the sizes compressed rather than expanded.
Mick wrote : If someone can share some thoughts, experiences, practices that you have adopted in order to take care of this issue, I will highly appreciate it.
One thing that comes to mind is that attributes take less
space than elements.
For example :
<this type="sometype" name="somename" value="somevalue"/>
Takes one line and 58 characters while this :
<this>
<type>sometype</type>
<name>somename</name>
<value>somevalue</value>
</this>
takes 5 lines and 84 characters.
The morale of the story is that if saving space is a premium
use attributes instead of elements whenever possible.
In <f8**************************@posting.google.com >, on 08/23/2004
at 07:13 PM, ob*****************@yahoo.com (Mick) said: I like XML and use it for various things, but haven't been able to justify its verbose nature especially w.r.t. transmitting information over the wire. (assuming there is no compression involved)
It's the nature of the beast. If you want something compact, then you
need a binary EDI format, but that would lock you out of a lot of
character-oriented software. If you want something that lets you
leverage existing HTML and SGML tools, then I don't see how you can
avoid the bloat.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to sp******@library.lspace.org
This is a problem for many users. The W3C thinks enough of this issue
that they created the XML-Binary working group. It's charter is to
look into creating a standardized binary representation of XML. This
would not replace XML, but would be used in situations such as yours
to provide an alternate, more compact encoding to allow things to be
done more efficiently.
This is still in the early stages and nothing has been produced yet.
For now, you are stuck with the verbose nature if you want to use XML.
The alternative is to use a different data representation format.
Regards,
Ed Day
Objective Systems, Inc. ob*****************@yahoo.com (Mick) wrote in message news:<f8**************************@posting.google. com>... Hi All
I'm fairly certain this topic has been discussed before in this forum before, and I would appreciate your patience in this matter.
I like XML and use it for various things, but haven't been able to justify its verbose nature especially w.r.t. transmitting information over the wire. (assuming there is no compression involved)
All I've been able to come up with is "Oh well, the benefits of using it more than compensate for this trivial drawback!!! " but seriously, I can't turn a blind eye to the 5 Megs file that I generate every day to transfer data that I believe is only about 1.5 Megs.
If someone can share some thoughts, experiences, practices that you have adopted in order to take care of this issue, I will highly appreciate it.
regards mick.
I thank you all for responding and sharing your views about it. It is
certainly enriching.
Sometimes I wonder, and this might sound a bit knaive, but bear with
me for a moment - why do we need to describe each and every "object"
expressed in XML over and over again, the alternative in my mind is a
"definition handshake" - on demand _or_ as repeated every so often,
just not with e v e r y object. We can still keep it text-based and
"human readable" but not necesarily something you would want to
"write" in vi (something we don't do anyways).
It sounds like a cool thing to do to keep it simple, human readable
and writable in a simple notepad and all that jazz... but lets face it
.... all the language components that process xml also have to churn
through A L L of it (one could make the argument that this is less of
an issue since the processing power doubles every 12 months or
whatever :-) and then we wonder 'darn it ... these software pieces are
getting very demanding')
For what its worth, for the record it does not mean that I will stop
using XML anytime soon, but stilll just wanted to see what ya'll think
Regards
Mick. ob*****************@yahoo.com (Mick) wrote in message news:<f8**************************@posting.google. com>... Hi All
I'm fairly certain this topic has been discussed before in this forum before, and I would appreciate your patience in this matter.
I like XML and use it for various things, but haven't been able to justify its verbose nature especially w.r.t. transmitting information over the wire. (assuming there is no compression involved)
All I've been able to come up with is "Oh well, the benefits of using it more than compensate for this trivial drawback!!! " but seriously, I can't turn a blind eye to the 5 Megs file that I generate every day to transfer data that I believe is only about 1.5 Megs.
If someone can share some thoughts, experiences, practices that you have adopted in order to take care of this issue, I will highly appreciate it.
regards mick.
In article <f8**************************@posting.google.com >,
Mick <ob*****************@yahoo.com> wrote:
% Sometimes I wonder, and this might sound a bit knaive, but bear with
% me for a moment - why do we need to describe each and every "object"
% expressed in XML over and over again, the alternative in my mind is a
Because that's the nature of representing data using XML. If you
stop doing it, then you're no longer using XML.
[...]
% For what its worth, for the record it does not mean that I will stop
% using XML anytime soon, but stilll just wanted to see what ya'll think
Why not? What you're really asking is whether XML is suitable for
whatever purpose you're putting it to, and you're suggesting
that maybe it isn't.
What XML gives you is a complete syntax for encoding structured data
and pre-written parsers which can process that data. If you're using
it for data exchange, it makes it easy to pick out individual bits
of data. One could certainly define a different syntax for encoding data
which provides the same advantages but which might work better for
data interchange. It's probably been done.
--
Patrick TJ McPhee
East York Canada pt**@interlog.com
Have you tried YAML - www.yaml.org?
"Shmuel (Seymour J.) Metz" <sp******@library.lspace.org.invalid> wrote in
message news:41**************************@news.patriot.net ... In <f8**************************@posting.google.com >, on 08/23/2004 at 07:13 PM, ob*****************@yahoo.com (Mick) said:
I like XML and use it for various things, but haven't been able to justify its verbose nature especially w.r.t. transmitting information over the wire. (assuming there is no compression involved)
It's the nature of the beast. If you want something compact, then you need a binary EDI format, but that would lock you out of a lot of character-oriented software. If you want something that lets you leverage existing HTML and SGML tools, then I don't see how you can avoid the bloat.
-- Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the right to publicly post or ridicule any abusive E-mail. Reply to domain Patriot dot net user shmuel+news to contact me. Do not reply to sp******@library.lspace.org This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Pascal |
last post by:
Hello,
I've a function like this:
def myfunction(data, verbose = False):
dothis...
if verbose: print 'I do this'
dothisother
if verbose: print 'I do this other'
...
|
by: mitchell |
last post by:
Is it possible to store doctest's verbose output to a variable?
For example:
import doctest, my_test_module
a = doctest.testmod(my_test_module)
The contents of 'a' is the tuple of passed...
|
by: Jeremy |
last post by:
I am using regular expressions and I would like to use both
re.IGNORECASE and re.VERBOSE options. I want to do something like the
following (which doesn't work):
matsearch = r'''^\ {0,4}(\d+)...
|
by: Adam H. Pendleton |
last post by:
When running a "VACUUM VERBOSE" query using PQsendQuery, PQconsumeInput,
and PQisBusy, all the "INFO:" output from the "VACUUM VERBOSE" command
is printed on the terminal, and is not available...
|
by: Eric Lilja |
last post by:
Hello, I'm a novice C++ programmer and now I have the task of converting
a number of C++ functions to C. Some of the functions I'm converting takes a
parameter
of type reference-to-std::string...
|
by: Sam |
last post by:
Does anyone know how I can call vbc.exe from a Windows Application and
return the output messages?
I thought I might be able to do it using the
System.Diagnostics.Process object. I have got it...
|
by: mast2as |
last post by:
In the same vein as the topic that I started on exception handling ;-)
.... If I have read (not all of them though) the documents that you
guys pointed me to, the try/throw/catch mechanism should...
|
by: Les Caudle |
last post by:
I've got a .NET 2.0 app that works quite well on all of my test boxes.
However, at the client's site, it crashes with
'has encounted a problem' basic dialog. No useful info.
I've yet to see...
|
by: Justin |
last post by:
I've never work with creating controls on the fly. Now that I am, I'm
uncertain about a particular aspect.
Example:
I have a static listbox named ListBox1. I use the following routine:
...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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
|
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...
|
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...
| |