Item 3. Stay with XML 1.0

Everything you need to know about XML 1.1 can be summed up in two rules.

  1. Don't use it.

  2. (For experts only) If you speak Mongolian, Yi, Cambodian, Amharic, Dhivehi, Burmese, or a very few other languages and you want to write your markup (not your text but your markup) in these languages, you can set the version attribute of the XML declaration to 1.1. Otherwise, refer to rule 1.

XML 1.1 does several things, one of them marginally useful to a few developers, the rest actively harmful .

  • It expands the set of characters allowed as name characters .

  • The C0 control characters (except for NUL) such as form feed, vertical tab, BEL, and DC1 through DC4 are now allowed in XML text provided they are escaped as character references.

  • The C1 control characters (except for NEL) must now be escaped as character references.

  • NEL can be used in XML documents but is resolved to a line feed on parsing.

  • Parsers may (but do not have to) tell client applications that Unicode data was not normalized.

  • Namespace prefixes can be undeclared.

Let's look at these changes in more detail.



Effective XML. 50 Specific Ways to Improve Your XML
Effective XML: 50 Specific Ways to Improve Your XML
ISBN: 0321150406
EAN: 2147483647
Year: 2002
Pages: 144

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net