Joe Wang wrote:
> Here's a brief on StAX
> Last week -- checked in event/base classes.
> Current:
> a) StAXManager -- managing StAX features, done in a basic form, need
> help to fill in the following table:
> Feature
> Support(true/false)
> XMLInputFactory.IS_NAMESPACE_AWARE true
> XMLInputFactory.IS_VALIDATING
> false
> XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES false?
> XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES false?
Fast Infoset is specified according to the XML Information Set thus FI
only supports unexpanded entity references.
As per the Entities section of the XML Information Set:
"An information set describes its XML document with entity references
already expanded, that is, represented by the information items
corresponding to their replacement text. However, there are various
circumstances in which a processor may not perform this expansion. An
entity may not be declared, or may not be retrievable. A non-validating
processor may choose not to read all declarations, and even if it does,
may not expand all external entities. In these cases an unexpanded
entity reference information item is used to represent the entity
reference."
I need to look up the exact meaning of these flags per JSR-173, but i
suspect they need to be false.
> XMLInputFactory.IS_COALESCING false
If true does this mean that text content consisting only of white space
is not reported?
This should be easy to support in the FI parser.
> XMLInputFactory.SUPPORT_DTD false
Defintely false.
Paul.
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_fi.dev.java.net
For additional commands, e-mail: dev-help_at_fi.dev.java.net