1 package net.sf.saxon.pull; 2 3 import net.sf.saxon.trans.XPathException; 4 5 9 public class DocumentEventIgnorer extends PullFilter { 10 11 public DocumentEventIgnorer(PullProvider base) { 12 super(base); 13 } 14 15 25 26 public int next() throws XPathException { 27 do { 28 currentEvent = super.next(); 29 } while (currentEvent == START_DOCUMENT || currentEvent == END_DOCUMENT); 30 return currentEvent; 31 } 32 } 33 34 | Popular Tags |