Appending to an XML document

Walter Underwood wunder at infoseek.com
Fri Dec 10 22:57:28 GMT 1999


At 11:09 AM 12/10/99 -0500, Larry Watanabe wrote:
>
>If a log file can't easily be represented as a well-formed XML document,
>then that does indicate a problem with the spec.

Well, time series data (a logfile) isn't normalizable in the 
relational model, so there's a problem with the SQL spec, too. 
And I'm having a lot of trouble accessing my meatloaf with my 
SCSI bus, so let's fix that while we're at it.

Seriously, I think it is good that XML documents have a 
definate end. But the logfile problem can be solved in
two (near-)standard ways.

1) Treat the logfile as an XML Fragment (see proposal at W3C).
   An XML Fragment needs to be "well-balanced", but doesn't have
   to have a single root element.

2) Treat the logfile as a series of XML documents, each of 
   which is a log record. They could be separated by formfeed
   (a character illegal inside an XML document). Since the
   the XML declaration is technically optional, it could be
   omitted.

But nobody every made representing logfiles a requirement
for a markup language. It is usually far more important that
logfiles are compact and are readable if the program crashes
(or the disk fills) when a record is partly-written.

wunder
--
Walter R. Underwood
Senior Staff Engineer
Infoseek Software
GO Network, part of The Walt Disney Company
wunder at infoseek.com
http://software.infoseek.com/cce/ (my product)
http://www.best.com/~wunder/
1-408-543-6946

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list