public void duplicateElement(AbstractHandler handler, String element, Attributes attributes) { addError(IStatus.WARNING, NLS.bind(Messages.XMLParser_Duplicate_Element, new Object[] {handler.getName(), element, toString(attributes)}), null); //ignore the duplicate element entirely because we have already logged it new IgnoringHandler(handler); }
public void duplicateElement(AbstractHandler handler, String element, Attributes attributes) { addError(IStatus.WARNING, NLS.bind(Messages.XMLParser_Duplicate_Element, new Object[] {handler.getName(), element, toString(attributes)}), null); //ignore the duplicate element entirely because we have already logged it new IgnoringHandler(handler); }
public void invalidElement(String name, Attributes attributes) { unexpectedElement(this, name, attributes); new IgnoringHandler(this); }
public void invalidElement(String name, Attributes attributes) { unexpectedElement(this, name, attributes); new IgnoringHandler(this); }
/** * An implementation for startElement when there are no sub-elements */ protected void noSubElements(String name, Attributes attributes) { unexpectedElement(this, name, attributes); // Create a new handler to ignore subsequent nested elements new IgnoringHandler(this); }
/** * An implementation for startElement when there are no sub-elements */ protected void noSubElements(String name, Attributes attributes) { unexpectedElement(this, name, attributes); // Create a new handler to ignore subsequent nested elements new IgnoringHandler(this); }