Skip to content

Commit

Permalink
formating
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Righter committed Jan 17, 2010
1 parent b393dd2 commit e7aa4df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/node-xml.js
Expand Up @@ -1183,10 +1183,8 @@ var parseHtmlString = function(thehtml, callback){
//make a sax parser and hook up the events //make a sax parser and hook up the events
var m_parser = new SaxParser(function(cb) { var m_parser = new SaxParser(function(cb) {
cb.onStartDocument(function() { cb.onStartDocument(function() {

}); });
cb.onEndDocument(function() { cb.onEndDocument(function() {
sys.puts('HERE');
callback(m_doc); callback(m_doc);
}); });
cb.onStartElementNS(function(elem, attrs, prefix, uri, namespaces) { cb.onStartElementNS(function(elem, attrs, prefix, uri, namespaces) {
Expand All @@ -1208,6 +1206,7 @@ var parseHtmlString = function(thehtml, callback){


}); });
cb.onError(function(msg) { cb.onError(function(msg) {
sys.puts('<ERROR>'+JSON.stringify(msg)+"</ERROR>");
//(JSON.stringify(msg)); //(JSON.stringify(msg));
}); });
}); });
Expand Down

0 comments on commit e7aa4df

Please sign in to comment.