Re: Magic Data
Not mandatory but recommended: http://www.w3.org/TR/REC-xml/#sec-prolog-dtdArk wrote:Just a thought: XML isn't technically considered valid unless you include the mandatory header line at the top, which is at a minimum:
<?xml version="1.0">
Valid seems to mean something else also: http://www.w3.org/TR/REC-xml/#dt-valid
I've actually had the opposite experience. The more meta stuff added the more likely something is to break. DTDs for instance always seem to cause trouble for me. Do you know of any specific parsers/tools that would fail due to lack of BOM/encoding-declaration?Ark wrote:Although, a BOM and charset marker would he helpful to many people's XML software:
\xEF\xBB\xBF<?xml version="1.0" encoding="utf-8"?>
(The 3 hex bytes would show up as an invisible nothing in any text editor)
Either way I can see that specifying encoding could be useful. (Can't find how a lack of such a declaration should actually be handled. Doesn't seem like there is any explicit default encoding to fall back to.) Will add that to the next version, thanks for the feedback.
, should be: