public void endDocument() throws SAXException { super.endDocument(); if( seenBindings && version==null ) { // if we see a binding declaration but not version attribute SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_VERSION_NOT_FOUND),rootTagStart); getErrorHandler().error(e); } // if present, the value must be either 1.0 or 2.0 if( version!=null && !VERSIONS.contains(version) ) { SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_INCORRECT_VERSION),rootTagStart); getErrorHandler().error(e); } }
public void endDocument() throws SAXException { super.endDocument(); if( seenBindings && version==null ) { // if we see a binding declaration but not version attribute SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_VERSION_NOT_FOUND),rootTagStart); getErrorHandler().error(e); } // if present, the value must be either 1.0 or 2.0 if( version!=null && !VERSIONS.contains(version) ) { SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_INCORRECT_VERSION),rootTagStart); getErrorHandler().error(e); } }
public void endDocument() throws SAXException { super.endDocument(); if( seenBindings && version==null ) { // if we see a binding declaration but not version attribute SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_VERSION_NOT_FOUND),rootTagStart); getErrorHandler().error(e); } // if present, the value must be either 1.0 or 2.0 if( version!=null && !VERSIONS.contains(version) ) { SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_INCORRECT_VERSION),rootTagStart); getErrorHandler().error(e); } }
public void endDocument() throws SAXException { super.endDocument(); if( seenBindings && version==null ) { // if we see a binding declaration but not version attribute SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_VERSION_NOT_FOUND),rootTagStart); getErrorHandler().error(e); } // if present, the value must be either 1.0 or 2.0 if( version!=null && !VERSIONS.contains(version) ) { SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_INCORRECT_VERSION),rootTagStart); getErrorHandler().error(e); } }
public void endDocument() throws SAXException { super.endDocument(); if( seenBindings && version==null ) { // if we see a binding declaration but not version attribute SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_VERSION_NOT_FOUND),rootTagStart); getErrorHandler().error(e); } // if present, the value must be either 1.0 or 2.0 if( version!=null && !VERSIONS.contains(version) ) { SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_INCORRECT_VERSION),rootTagStart); getErrorHandler().error(e); } }
return null; } catch( IOException e ) { errorReceiver.error(Messages.format(Messages.DOMFOREST_INPUTSOURCE_IOEXCEPTION, systemId, e.toString()),e); core.remove(systemId); rootDocuments.remove(systemId);
String msg = e.getMessage(); if(new File(relativeRef).exists()) { msg = Messages.format(Messages.ERR_FILENAME_IS_NOT_URI)+' '+msg; Messages.format(Messages.ERR_UNABLE_TO_PARSE,relativeRef, msg), locator, e ); } catch( IOException e ) { SAXParseException spe = new SAXParseException2( Messages.format(Messages.ERR_UNABLE_TO_PARSE,relativeRef,e.getMessage()), locator, e );
String msg = e.getMessage(); if(new File(relativeRef).exists()) { msg = Messages.format(Messages.ERR_FILENAME_IS_NOT_URI)+' '+msg; Messages.format(Messages.ERR_UNABLE_TO_PARSE,relativeRef, msg), locator, e ); } catch( IOException e ) { SAXParseException spe = new SAXParseException2( Messages.format(Messages.ERR_UNABLE_TO_PARSE,relativeRef,e.getMessage()), locator, e );
return null; } catch( IOException e ) { errorReceiver.error(Messages.format(Messages.DOMFOREST_INPUTSOURCE_IOEXCEPTION, systemId, e.toString()),e); core.remove(systemId); rootDocuments.remove(systemId);
return null; } catch( IOException e ) { errorReceiver.error(Messages.format(Messages.DOMFOREST_INPUTSOURCE_IOEXCEPTION, systemId, e.toString()),e); core.remove(systemId); rootDocuments.remove(systemId);
return null; } catch( IOException e ) { errorReceiver.error(Messages.format(Messages.DOMFOREST_INPUTSOURCE_IOEXCEPTION, systemId, e.toString()),e); core.remove(systemId); rootDocuments.remove(systemId);
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { super.startElement(namespaceURI, localName, qName, atts); if(!seenRoot) { // if this is the root element seenRoot = true; rootTagStart = new LocatorImpl(locator); version = atts.getValue(Const.JAXB_NSURI,"version"); if( namespaceURI.equals(Const.JAXB_NSURI) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( Messages.format( Messages.TWO_VERSION_ATTRIBUTES ), locator ); getErrorHandler().error(e); } if( version==null ) version = version2; } } if( Const.JAXB_NSURI.equals(namespaceURI) ) seenBindings = true; }
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { super.startElement(namespaceURI, localName, qName, atts); if(!seenRoot) { // if this is the root element seenRoot = true; rootTagStart = new LocatorImpl(locator); version = atts.getValue(Const.JAXB_NSURI,"version"); if( namespaceURI.equals(Const.JAXB_NSURI) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( Messages.format( Messages.TWO_VERSION_ATTRIBUTES ), locator ); getErrorHandler().error(e); } if( version==null ) version = version2; } } if( Const.JAXB_NSURI.equals(namespaceURI) ) seenBindings = true; }
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { super.startElement(namespaceURI, localName, qName, atts); if(!seenRoot) { // if this is the root element seenRoot = true; rootTagStart = new LocatorImpl(locator); version = atts.getValue(Const.JAXB_NSURI,"version"); if( namespaceURI.equals(Const.JAXB_NSURI) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( Messages.format( Messages.TWO_VERSION_ATTRIBUTES ), locator ); getErrorHandler().error(e); } if( version==null ) version = version2; } } if( Const.JAXB_NSURI.equals(namespaceURI) ) seenBindings = true; }
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { super.startElement(namespaceURI, localName, qName, atts); if(!seenRoot) { // if this is the root element seenRoot = true; rootTagStart = new LocatorImpl(locator); version = atts.getValue(Const.JAXB_NSURI,"version"); if( namespaceURI.equals(Const.JAXB_NSURI) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( Messages.format( Messages.TWO_VERSION_ATTRIBUTES ), locator ); getErrorHandler().error(e); } if( version==null ) version = version2; } } if( Const.JAXB_NSURI.equals(namespaceURI) ) seenBindings = true; }
String msg = e.getMessage(); if (new File(relativeRef).exists()) { msg = Messages.format(Messages.ERR_FILENAME_IS_NOT_URI) + ' ' + msg; Messages.format(Messages.ERR_UNABLE_TO_PARSE, relativeRef, msg), locator, e); } catch (IOException e) { SAXParseException spe = new SAXParseException2( Messages.format(Messages.ERR_UNABLE_TO_PARSE, relativeRef, e.getMessage()), locator, e);
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { super.startElement(namespaceURI, localName, qName, atts); if(!seenRoot) { // if this is the root element seenRoot = true; rootTagStart = new LocatorImpl(locator); version = atts.getValue(Const.JAXB_NSURI,"version"); if( namespaceURI.equals(Const.JAXB_NSURI) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( Messages.format( Messages.TWO_VERSION_ATTRIBUTES ), locator ); getErrorHandler().error(e); } if( version==null ) version = version2; } } if( Const.JAXB_NSURI.equals(namespaceURI) ) seenBindings = true; }
String msg = e.getMessage(); if (new File(relativeRef).exists()) { msg = Messages.format(Messages.ERR_FILENAME_IS_NOT_URI) + ' ' + msg; Messages.format(Messages.ERR_UNABLE_TO_PARSE, relativeRef, msg), locator, e); } catch (IOException e) { SAXParseException spe = new SAXParseException2( Messages.format(Messages.ERR_UNABLE_TO_PARSE, relativeRef, e.getMessage()), locator, e);
String msg = e.getMessage(); if (new File(relativeRef).exists()) { msg = Messages.format(Messages.ERR_FILENAME_IS_NOT_URI) + ' ' + msg; Messages.format(Messages.ERR_UNABLE_TO_PARSE, relativeRef, msg), locator, e); } catch (IOException e) { SAXParseException spe = new SAXParseException2( Messages.format(Messages.ERR_UNABLE_TO_PARSE, relativeRef, e.getMessage()), locator, e);
NodeList elements = root.getElementsByTagNameNS(XMLConstants.W3C_XML_SCHEMA_NS_URI, "schema"); if ((elements == null) || (elements.getLength() < 1)) { reportError(item, Messages.format(Messages.ORPHANED_CUSTOMIZATION, item.getNodeName())); return; } else { if (!(target instanceof Element)) { reportError(item, Messages.format(Messages.CONTEXT_NODE_IS_NOT_ELEMENT)); return; // abort Messages.format(Messages.ORPHANED_CUSTOMIZATION, item.getNodeName())); return; // abort