From cd4829163dd2c76a6d91d8d66effac132b13d05e Mon Sep 17 00:00:00 2001 From: jez_higgins <> Date: Thu, 27 May 2004 08:28:43 +0000 Subject: [PATCH] *** empty log message *** --- examples/SAX/pyx.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/examples/SAX/pyx.cpp b/examples/SAX/pyx.cpp index 60de91cf..68259cf2 100644 --- a/examples/SAX/pyx.cpp +++ b/examples/SAX/pyx.cpp @@ -32,11 +32,8 @@ class SAX2PYX : public SAX::DefaultHandler virtual void warning(const SAX::SAXParseException& e) { fatalError(e); } virtual void error(const SAX::SAXParseException& e) { fatalError(e); } - void setParser(SAX::XMLReader& parser) { parser_ = &parser; } - private: std::string escape(const std::string& str) const; - SAX::XMLReader* parser_; }; // class SimpleHandler int main(int argc, char* argv[]) @@ -56,7 +53,6 @@ int main(int argc, char* argv[]) SAX::XMLReader myParser; myParser.setContentHandler(handler); myParser.setErrorHandler(handler); - handler.setParser(myParser); SAX::InputSource is(argv[i]); myParser.parse(is); @@ -82,12 +78,6 @@ void SAX2PYX::startElement(const std::string&, const std::string& localName, << ' ' << escape(atts.getValue(i)) << std::endl; } // for ... - - std::cerr << " " - << parser_->getLineNumber() - << "," - << parser_->getColumnNumber() - << std::endl; } // startElement void SAX2PYX::endElement(const std::string&, const std::string& localName,