Stefan Ram (
[email protected]) wrote:
: >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.