Code example for Locator

Methods: getColumnNumber, getLineNumber

0
			super.endPrefixMapping(prefix);
			DocIndexerXml.this.endPrefixMapping(prefix);
		} 
 
		public String describePosition() {
			return "line " + locator.getLineNumber() + ", position " + locator.getColumnNumber();
		} 
 
	} 
 
	SaxParseHandler saxParseHandler = new SaxParseHandler();
 
	/** 
	 * What namespace prefix mappings have we encountered but not output in a start tag 
	 * yet? (used to make sure the stored XML contains all the required mappings) 
	 */ 
	protected static Map<String,String> outputPrefixMapping = new HashMap<String, String>();
 
	/** 
	 * Encountered a prefix to namespace mapping; now in effect. 
	 * @param prefix the prefix that is now in effect