Hi, I am using xerces 2.8.0 I create my parser like that:
SAX2XMLReader* pParser = XMLReaderFactory::createXMLReader(); pParser->setContentHandler(MyOwnHandler); pParser->setErrorHandler(MyOwnHandler); pParser->setLexicalHandler(MyOwnHandler); pParser->setEntityResolver(MyOwnHandler); and then I call the pParser->parse(MyFile.xml); Now, I want to get the line number of the element that is being parsed from the MyOwnHandler::startElement function I am not able to figure out how to get to the getLineNumber function of parser from my SAX2XMLReader object Thanks -- Bassem Srouji Sr. Software Developer | Presagis T. +1 514 341.3874 X322 F. +1 514 341.8018 DISCLAIMER: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and/or proprietary information. Do not read, copy, or disseminate this message unless you are the addressee. Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail and delete the original and any copies from your system. AVERTISSEMENT : Ce courriel s'adresse exclusivement au(x) destinataire(s) mentionn?(s) et peut contenir de l'information confidentielle et/ou de nature exclusive. Ne pas lire, copier ou transmettre ? quiconque ce courriel sauf si vous en ?tes le destinataire. Il est strictement interdit de r?viser, utiliser, transmettre ou distribuer ce courriel sans autorisation pr?alable. Si vous avez re?u ce message par erreur, veuillez communiquer avec l'exp?diteur en r?pondant ? ce courriel et en supprimant le courriel original et toutes les copies enregistr?es sur votre syst?me.