Permalink
Browse files

formating

  • Loading branch information...
1 parent b393dd2 commit e7aa4df53b8448679ad2d11564cd13a1c4c5a0e7 Robert Righter committed Jan 17, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/node-xml.js
View
3 lib/node-xml.js
@@ -1183,10 +1183,8 @@ var parseHtmlString = function(thehtml, callback){
//make a sax parser and hook up the events
var m_parser = new SaxParser(function(cb) {
cb.onStartDocument(function() {
-
});
cb.onEndDocument(function() {
- sys.puts('HERE');
callback(m_doc);
});
cb.onStartElementNS(function(elem, attrs, prefix, uri, namespaces) {
@@ -1208,6 +1206,7 @@ var parseHtmlString = function(thehtml, callback){
});
cb.onError(function(msg) {
+ sys.puts('<ERROR>'+JSON.stringify(msg)+"</ERROR>");
//(JSON.stringify(msg));
});
});

0 comments on commit e7aa4df

Please sign in to comment.