Code example for NamespaceSupport

0
 * 
 * @author David Brownell 
 */ 
public class NSFilter extends EventFilter 
{ 
    private NamespaceSupport    nsStack = new NamespaceSupport ();
    private Stack               elementStack = new Stack ();
 
    private boolean             pushedContext;
    private String              nsTemp [] = new String [3];
    private AttributesImpl      attributes = new AttributesImpl ();
    private boolean             usedDefault;
 
    // gensymmed prefixes use this root name 
    private static final String prefixRoot = "prefix-";
 
 
    /** 
     * Passes events through to the specified consumer, after first 
     * processing them. 
     *