Aleksander Slominski wrote:
> setInputSource(...)
> setFeature(...)
> parse(true/false)
> 
> and the call to setFeature will be ignored as features are evaluated

The call to setFeature will not be ignored. The XNI Manual
in the documentation states:

  Before parsing a document, a parser configuration must use 
  the component manager to reset all of the parser components. 
  Then, during parsing, each time a feature or property value 
  is modified, all of the components must be informed of the 
  change. [1]

Note the second part which says that during a parse, calls
to XMLParserConfiguration#setFeature or #setProperty are
forwarded to all registered components that implement the
XMLComponent interface. In this way, configurable components
are notified of changes to the configuration settings.

This behavior does not change if the parser configuration
implements the XMLPullParserConfiguration interface (which
extends the XMLParserConfiguration interface).

[1] http://xml.apache.org/xerces2-j/xni-config.html#configurations

-- 
Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to