var TopLevel = {
"attributes" : function () {},
"close" : function () {},
"Error" : function () {},
"name" : function () {},
"onclosetag" : function () {},
"onend" : function () {},
"onerror" : function () {},
"onopentag" : function () {},
"ontext" : function () {},
"parser" : function () {},
"sax" : function () {},
"write" : function () {}
}

@@ -1,35 +1,92 @@
-var TopLevel = %7B%0A%22attributes%22 :
+/**%0A * @const%0A */%0Avar sax = function() %7B%7D;%0A%0A/**%0A * @constructor%0A * @dict%0A */%0Asax._Node =
  fun
@@ -94,25 +94,55 @@
 tion
- 
 () %7B%7D
-,%0A%22close%22 :
+;%0A%0A/**%0A * @constructor%0A */%0Asax.SAXParser =
  fun
@@ -150,25 +150,55 @@
 tion
- 
 () %7B%7D
-,%0A%22Error%22 :
+;%0A%0A/**%0A * @constructor%0A */%0Asax.SAXStream =
  fun
@@ -206,55 +206,363 @@
 tion
- 
 () %7B%7D
-,%0A%22name%22 : function () %7B%7D,%0A%22onclosetag%22 :
+;%0A%0A/**%0A * @this %7Bnull%7D%0A * @return %7Bsax.SAXStream%7D%0A */%0Asax.createStream = function() %7B%7D;%0A%0A/**%0A * @this %7Bnull%7D%0A * @return %7Bsax.SAXParser%7D%0A */%0Asax.parser = function() %7B%7D;%0A%0A/**%0A * @this %7Bsax.SAXParser%7D%0A * @return %7Bnull%7D%0A */%0Asax.SAXParser.prototype.write = function() %7B%7D;%0A%0A/**%0A * @this %7Bsax.SAXParser%7D%0A * @return %7Bnull%7D%0A */%0Asax.SAXParser.prototype.close =
  fun
@@ -570,25 +570,98 @@
 tion
- 
 () %7B%7D
-,%0A%22onend%22 :
+;%0A%0A/**%0A * @this %7Bsax.SAXParser%7D%0A * @return %7Bnull%7D%0A */%0Asax.SAXParser.prototype.flush =
  fun
@@ -669,45 +669,270 @@
 tion
- 
 () %7B%7D
-,%0A%22onerror%22 : function () %7B%7D,%0A%22
+;%0A%0A/**%0A * @this %7Bsax.SAXParser%7D%0A * @return %7Bnull%7D%0A */%0Asax.SAXParser.prototype.resume = function() %7B%7D;%0A%0A/**%0A * @this %7Bsax.SAXParser%7D%0A * @return %7Bnull%7D%0A */%0Asax.SAXParser.prototype.end = function() %7B%7D;%0A%0A/**%0A * @this %7Bsax.SAXParser%7D%0A */%0Asax.SAXParser.prototype.
 onop
@@ -936,19 +936,18 @@
 nopentag
-%22 :
+ =
  functio
@@ -951,26 +951,129 @@
 tion
- 
 () %7B%7D
-,%0A%22ontext%22 :
+;%0A%0A/**%0A * @this %7Bsax.SAXParser%7D%0A * @param %7Bsax._Node%7D%0A * @type %7Bfunction()%7D%0A */%0Asax.SAXParser.prototype.onclosetag =
  fun
@@ -1081,26 +1081,125 @@
 tion
- 
 () %7B%7D
-,%0A%22parser%22 :
+;%0A%0A/**%0A * @this %7Bsax.SAXParser%7D%0A * @param %7Bsax._Node%7D%0A * @type %7Bfunction()%7D%0A */%0Asax.SAXParser.prototype.ontext =
  fun
@@ -1207,49 +1207,251 @@
 tion
- 
 () %7B%7D
-,%0A%22sax%22 : function () %7B%7D,%0A%22write%22 :
+;%0A%0A/**%0A * @this %7Bsax.SAXParser%7D%0A * @param %7Bsax._Node%7D%0A * @type %7Bfunction()%7D%0A */%0Asax.SAXParser.prototype.onend = function() %7B%7D;%0A%0A/**%0A * @this %7Bsax.SAXParser%7D%0A * @param %7Bsax._Node%7D%0A * @type %7Bfunction()%7D%0A */%0Asax.SAXParser.prototype.onerror =
  fun
@@ -1459,13 +1459,11 @@
 tion
- 
 () %7B%7D
-%0A%7D
+;
 %0A

Add proper hand made externs file.