Sams Teach Yourself XML in 21 Days

Sams Teach Yourself XML in 21 Days

By Steven Holzner

Q&A

  1. What's the difference between character data and parsed character data?

    Character data is simply verbatim text data from an XML document. Parsed character data is text data where the XML processor has replaced any entity references with the entities themselves. Character data is referred to as CDATA (as in CDATA sections), and parsed character data is referred to as PCDATA (as we'll see when we create DTDs in Day 4).

  2. My text editor says it can save documents in plain text format, but says nothing about Unicode or UCS. Will that be OK when I write my XML documents?

    Yes, your text editor is most likely writing documents in ASCII, which is a subset of Unicode, which itself is a subset of UCS. ASCII characters use the same codes in compressed Unicode, UTF-8, so you should specify the UTF-8 encoding and an XML processor should have no trouble reading your document if you save it as plain text.

Share ThisShare This

Informit Network