David Bertoni wrote:
> Stephen Collyer wrote:
>> Is it possible to retrieve the required id
>> and line/col info from within, say, start_element()
>> in order to construct a SAXParseException ?
>>
> You need to override ContentHandler::setLocator() and store the pointer
> in your object.  During parsing event handlers, you can use the object
> to get this information.

I guess you mean setDocumentLocator() ?

So to use this, I create a Locator object, pass it to
setDocumentLocator(). Then the Xerces parser code will
set the appropriate error info, which I can retrieve
in, say, the warning(), error() methods of an error
handler class ?

-- 
Regards

Steve Collyer
Netspinner Ltd

Reply via email to