Code example for Locator

Methods: getColumnNumber, getLineNumber, getSystemId

0
                        try { 
                            ((ComplexType) container).addElement(settings,
                                    new SimpleType(elementName, "", value));
                        } catch (IllegalStateException ise) {
                            logger.warning("Unknown attribute '" + elementName
                                    + "' in '" + locator.getSystemId()
                                    + "', line: " + locator.getLineNumber()
                                    + ", column: " + locator.getColumnNumber());
                        } 
                    } 
                } catch (InvalidAttributeValueException e) {
                    try { 
                        logger.warning("Illegal value '"
                                + value
                                + "' for attribute '" 
                                + elementName
                                + "' in '" 
                                + locator.getSystemId()
                                + "', line: " 
                                + locator.getLineNumber()
                                + ", column: " 
                                + locator.getColumnNumber()
                                + ", Value reset to default value: " 
                                + ((ComplexType) container).getAttribute(
                                        settings, elementName));
                    } catch (AttributeNotFoundException e1) {
                        throw new SAXException(e1);