This class is designed to returned events that are optimised for the type of sequence that it is being inserted in.
Non-namespace aware objects are lighter than namespace aware ones. @author Christophe Lauret @version 27 April 2005
177178179180181182183184185186187
* * @throws LoadingException If thrown while parsing. */ public EventSequence process(Node node) throws LoadingException { // initialise the state variables. this.efactory = new EventFactory(this.config.isNamespaceAware()); this.tokenizer = TokenizerFactory.get(this.config); this.sequence = new EventSequence(); this.mapping = this.sequence.getPrefixMapping(); // start processing the nodes loadNode(node);
285286287288289290291292293
* @see org.xml.sax.ContentHandler#startDocument() */ @Override public void startDocument() { SAXRecorder.this.sequence = new EventSequence(); this.efactory = new EventFactory(SAXRecorder.this.config.isNamespaceAware()); this.tokenizer = TokenizerFactory.get(SAXRecorder.this.config); SAXRecorder.this.sequence.mapPrefix("http://www.w3.org/XML/1998/namespace", "xml"); }