Character Information Items
Along with element and attribute information items, characters are one of the core types of information used by XML applications. SAX2 reports characters in groups, rather than one at a time.
Property |
Callbacks |
Explanation |
---|---|---|
[character code] |
|
These calls provide one or more characters
in the UTF-16 encoding. Normally, each Java |
[element content whitespace] |
|
When known, this Boolean property is encoded by
using the |
[parent] |
|
Applications must keep track of this information item if it is needed. |
SAX2 permits reporting of a character property that the XML Infoset doesn’t address: whether the characters are in a CDATA section. (DOM requires this information.) Such section boundaries are reported using methods in the LexicalHandler class.
Get SAX2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.