Re: XML Not good for Big Files (vs Flat Files)



On Wed, 05 Apr 2006 14:34:33 +0100, bugbear
<bugbear@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote, quoted or indirectly quoted
someone who said :


In the first example is 5555555 a phone number, or
part of the address?

The traditional way to handle that is either with a first line
consisting of field names, and also a separate document describing
each field in proper detail with what it means.

Have you ever written a computer program to submit something to a bank
or a the government of any country? The specifications for a single
file comes as a book. There are paragraphs on every field.

The XML description is just a fraction of the information. And, for a
flat file, there is no need to spell the tags out over and over and
over. Any programmer understands the first time. The repetition just
introduces the complication that the tags might NOT be perfectly
repetitive.

XML is for tree structured data. It is hopeless at anything else.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: Getting NASM from C
    ... > format we were going to edit it in... ... all XML is? ... HTML is a specific "subset" of XML for displaying ... it's a text file with "tags" inside ...
    (alt.lang.asm)
  • Re: How to split a flat file using Document and Envelope Schemas
    ... The example in the SDK directory that demonstrates how to split a flat file ... Run the sample and save the output xml file for later use. ... > I defined schema for Employees and Employee separately. ... > samples regarding flat file disassembler but there is no sample for XML ...
    (microsoft.public.biztalk.general)
  • Re: Gotta start somewhere ... how many of us are really out there?
    ... if you are thinking of using XML ... pure shell commands ... ... or whatever XML tags you want to use using the acutal ... accompish all this in hindsight,as all the commands ...
    (freebsd-questions)
  • Re: Read binary data file
    ... I think its use is quite industry-dependent: I've never seen it used in financial messaging (that's more likely to use SWIFT formats, which are tagged text) but its common in the telecommunications industry. ... Compared with XML its a LOT more compact (tags are one byte, fixed length fields don't have terminators, variable length fields are preceded by a one or two byte length) and it has a number of predefined field types as well as arrays. ...
    (comp.lang.java.programmer)
  • Re: xml parsing issue
    ... point all data is being created and writing to xml file what I need. ... The output file has the following tags: ... The VLAN tag and attribute get created but a closing tag never does. ...
    (microsoft.public.scripting.vbscript)