You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Guy Sharon <gu...@hotmail.com> on 2002/09/04 16:15:31 UTC

Using Locator

I implemented a DefaultHandler (using a SAXParser) and added a couple of 
additional validation checks - in case there is a violation I want to throw 
a SAXParserException and report the location of the event being handled by 
the parser. Unfortunaly the column and line values are "-1". Can anyone tell 
what I am doing wrong (see snipet) if this is possible at all in this way.

Locator locator;

setDocumentLoactor(locator);

startElement(...){
...
   locator.getColumnNumber(); //returns -1



_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org