- public void startElement(String name, String[] keys, Object[] vals, int line, int col) throws SAXException {
- JSObject o = new JSObject();
- o.put("$name", null, name);
- for(int i=0; i<keys.length; i++) o.put(keys[i], null, vals[i]);
- o.put("$numchildren", null, new Integer(0));
+ public XMLHelper() { super(BUFFER_SIZE); }
+
+ public void startElement(XML.Element c) throws XML.SchemaException {
+ JS o = new JS.Obj();
+ o.put("$name", c.localName);
+ for(int i=0; i<c.len; i++) o.put(c.keys[i], c.vals[i]);
+ o.put("$numchildren", new Integer(0));