Code example for Locator

Methods: getColumnNumber, getPublicId, getSystemId

0
        System.out.println("unparsedEntityDecl---------name"+ name +"\t"+"publicId:" + publicId+ "\t"+ "systemId:" + systemId + "\t notationName:" + notationName);
    } 
 
    @Override 
    public void setDocumentLocator(Locator locator) {
        System.out.println("setDocumentLocator--------------Locator: getPublicId" + locator.getPublicId() + "\t getColumnNumber"+ locator.getColumnNumber()+ "\t "+ locator.getSystemId());
    } 
 
    @Override 
    public void startDocument() throws SAXException { 
        System.out.println("----start document--------");
    } 
 
    @Override 
    public void endDocument() throws SAXException { 
         System.out.println("----end document--------");
    } 
 
    @Override 
    public void startPrefixMapping(String prefix, String uri) throws SAXException {
        System.out.println("startPrefixMapping---prefix: "+ prefix + "\t, url" + uri);