←Older revision | Revision as of 13:09, 3 April 2018 | ||
Line 1: | Line 1: | ||
- | + | The [[wikipedia::XML]] [[language]] is unique when it comes to [[BackwardCompatibility]] as it requires each document to encode the version of the used [[XML]] dialect as its first line. Each document starts with: | |
+ | <source lang="xml"> | ||
+ | <?xml version="1.0"?> | ||
+ | <!-- or --> | ||
+ | <?xml version="1.1"?> | ||
+ | </source> | ||
+ | as a result by parsing the first line, each parser knows what rules to apply to the rest of the document. | ||
+ | |||
+ | Should all languages specify their version as soon as possible, we wouldn't see the [[Python]] 2.x vs. 3.0 problem! |