O'Reilly logo

Effective XML: 50 Specific Ways to Improve Your XML by Elliotte Rusty Harold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The standalone Declaration

The standalone attribute has the value yes or no. If no standalone declaration is present, then no is the default.

A yes value means that no declarations in the external DTD subset affect the content of the document in any way. Specifically, the following four conditions apply.

  1. No default attribute values are specified for elements.

  2. No entity references used in the instance document are defined.

  3. No attribute values need to be normalized.

  4. No elements contain ignorable white space.

Table 1-1. Character Set Names Defined in XML
NameSet
UTF-8Variable width, byte order independent Unicode
UTF-16Two-byte Unicode with surrogate pairs
ISO-10646-UCS-2Two-byte Unicode without surrogate pairs; plane 0 only
ISO-10646-UCS-4Four-byte Unicode ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required