[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto-detecting encoding for XML

From: Colin Walters
Subject: Re: auto-detecting encoding for XML
Date: 20 May 2002 18:18:15 -0400

On Mon, 2002-05-20 at 11:26, Kai Großjohann wrote:

> The <?xml ...?> stuff must be at the beginning of an XML file, I
> think.  I don't think elisp files are likely to begin with the
> characters "<?".

Ah, must the XML declaration be at the very beginning of the file?  I
thought that it might be legal for it to be preceeded by SGML comments
or other processing instructions, etc.

[ looks at XML standard ]

Hm, it seems to say that the "XMLdecl" section must come first.  That
makes things a lot easier.  Then I'll change
`sgml-xml-auto-coding-function' to only look at the first line, and we
won't have to worry about an elisp file which contains the XML header
somewhere embedded in it.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]