4 // XXX this interface is not final, but a prototype.
6 /** SAX Context - used to match and perform actions
7 * provide access to the current stack and XML elements.
9 * Inspired by Tomcat's SAX context, although our's is
10 * implemented and used slightly differently.
14 public class SaxContext {
16 private String tagStack[];
19 // -------------------- Konstruktor
23 tagStack = new String[256];
26 // -------------------- Access to parsing context
28 /** Depth of the tag stack.
30 public int getTagCount() {
34 /** Access a particular tag
36 public String getTag( int pos ) {
40 // ------------------- Adjusting the parsing context
41 public void push(String tag) {