Enrico Weigelt wrote:
* Steinar Bang <sb@xxxxxx> wrote:
<snip>
No, but it is a well-formedness checking parser. And well-formed XML
MUST start with "<?xml", and can only be preceeded by a BOM.
http://w3.org/TR/2004/REC-xml-20040204/#sec-well-formed
http://w3.org/TR/2004/REC-xml-20040204/#charsets
(for the first link follow the "prolog" link in the BNF production).
hmm, can this be disabled or do I have to put an kind of preprocessor
in front of it when my files dont have <?xml ?
The XML declaration is optional, so you don't need to add one.
But if you have one, then it must be the very first thing in the document.
Btw, if you don't have one you are allowed to have leading whitespace.
Karl
|