Home > Articles > Web Services > XML

  • Print
  • + Share This
From the author of

From the author of

CDATA Attributes

The CDATA type indicates that the attribute can contain an arbitrary string of character data. Character references (such as &#38;) are recognized and expanded within the string, as are entity references. Attribute strings cannot contain unescaped markup characters (such as <, >, and &). Also, as in most programming languages, because the attribute value is quoted, it cannot contain unescaped quote characters (for example, "He said "Boo"" would not be valid). In some cases, using the alternative quote character (' instead of ") can be simpler than using the &quot; built-in entity reference: 'He said "Boo"'.

  • + Share This
  • 🔖 Save To Your Account