Re: detecting file type by magic number


Subject: Re: detecting file type by magic number
From: Leonard Rosenthol (leonardr@lazerware.com)
Date: Fri Jan 21 2000 - 10:44:36 CST


At 2:37 PM -0600 1/20/00, sterwill@abisource.com wrote:
>Kevin Vajk wrote:
>> sterwill suggested something like: <!doctype ...>
> > leonardr suggested something like: <?xml version="1.0"?>
>
>I think Leonard knows more about it than I do, but surely that's
>exactly what the <?xml?> tag is for, right? We should use it,
>even if we have to give it a pseudo-complete DTD reference.
>
        According to the XML spec, an XML document MUST begin with
(at least) the line above (<?xml version="1.0"?>). That line may
contain other attributes (eg. character set encoding), and may be
followed by the line that you suggest for specifying where to find
the relevant DTD (or other schema types).

        ONLY after all that "setup" would you find the base element
tag - <abiword> in this case.

LDR
----------------------------------------------------------------------------
                   You've got a SmartFriend in Pennsylvania
----------------------------------------------------------------------------
Leonard Rosenthol Internet: leonardr@lazerware.com
                                        America Online: MACgician
Web Site: <http://www.lazerware.com/>
FTP Site: <ftp://ftp.lazerware.com/>
PGP Fingerprint: C76E 0497 C459 182D 0C6B AB6B CA10 B4DF 8067 5E65



This archive was generated by hypermail 2b25 : Fri Jan 21 2000 - 10:49:44 CST