public ParserContext( XSOMParser owner, XMLParser parser ) { this.owner = owner; this.parser = parser; try { parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm())); SchemaImpl xs = (SchemaImpl) schemaSet.getSchema("http://www.w3.org/2001/XMLSchema"); xs.addSimpleType(schemaSet.anySimpleType,true); xs.addComplexType(schemaSet.anyType,true); } catch( SAXException e ) { // this must be a bug of XSOM if(e.getException()!=null) e.getException().printStackTrace(); else e.printStackTrace(); throw new InternalError(); } }
public ParserContext( XSOMParser owner, XMLParser parser ) { this.owner = owner; this.parser = parser; try { parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm())); SchemaImpl xs = (SchemaImpl) schemaSet.getSchema("http://www.w3.org/2001/XMLSchema"); xs.addSimpleType(schemaSet.anySimpleType,true); xs.addComplexType(schemaSet.anyType,true); } catch( SAXException e ) { // this must be a bug of XSOM if(e.getException()!=null) e.getException().printStackTrace(); else e.printStackTrace(); throw new InternalError(); } }
public ParserContext( XSOMParser owner, XMLParser parser ) { this.owner = owner; this.parser = parser; try { parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm())); SchemaImpl xs = (SchemaImpl) schemaSet.getSchema("http://www.w3.org/2001/XMLSchema"); xs.addSimpleType(schemaSet.anySimpleType,true); xs.addComplexType(schemaSet.anyType,true); } catch( SAXException e ) { // this must be a bug of XSOM if(e.getException()!=null) e.getException().printStackTrace(); else e.printStackTrace(); throw new InternalError(); } }
public ParserContext( XSOMParser owner, XMLParser parser ) { this.owner = owner; this.parser = parser; try (InputStream is = ParserContext.class.getResourceAsStream("datatypes.xsd")) { InputSource source = new InputSource(is); source.setSystemId("datatypes.xsd"); parse(source); SchemaImpl xs = (SchemaImpl) schemaSet.getSchema("http://www.w3.org/2001/XMLSchema"); xs.addSimpleType(schemaSet.anySimpleType,true); xs.addComplexType(schemaSet.anyType,true); } catch( SAXException | IOException e ) { // this must be a bug of XSOM throw new InternalError(e.getMessage()); } }
public ParserContext( XSOMParser owner, XMLParser parser ) { this.owner = owner; this.parser = parser; try (InputStream is = ParserContext.class.getResourceAsStream("datatypes.xsd")) { InputSource source = new InputSource(is); source.setSystemId("datatypes.xsd"); parse(source); SchemaImpl xs = (SchemaImpl) schemaSet.getSchema("http://www.w3.org/2001/XMLSchema"); xs.addSimpleType(schemaSet.anySimpleType,true); xs.addComplexType(schemaSet.anyType,true); } catch( SAXException | IOException e ) { // this must be a bug of XSOM throw new InternalError(e.getMessage()); } }
private void action6()throws SAXException { $runtime.checkDoubleDefError( $runtime.currentSchema.getType(st.getName()) ); $runtime.currentSchema.addSimpleType(st,false); }
private void action6()throws SAXException { $runtime.checkDoubleDefError( $runtime.currentSchema.getType(st.getName()) ); $runtime.currentSchema.addSimpleType(st,false); }
private void action6()throws SAXException { $runtime.checkDoubleDefError( $runtime.currentSchema.getType(st.getName()) ); $runtime.currentSchema.addSimpleType(st,false); }
private void action6()throws SAXException { $runtime.checkDoubleDefError( $runtime.currentSchema.getType(st.getName()) ); $runtime.currentSchema.addSimpleType(st,false); }
private void action6()throws SAXException { $runtime.checkDoubleDefError( $runtime.currentSchema.getType(st.getName()) ); $runtime.currentSchema.addSimpleType(st,false); }
private void action3()throws SAXException { XSSimpleType oldSt = $runtime.currentSchema.getSimpleType(newSt.getName()); if(oldSt==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_SIMPLETYPE,newSt.getName()) ); } else { newSt.redefine((SimpleTypeImpl)oldSt); $runtime.currentSchema.addSimpleType(newSt,true); } }
private void action3()throws SAXException { XSSimpleType oldSt = $runtime.currentSchema.getSimpleType(newSt.getName()); if(oldSt==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_SIMPLETYPE,newSt.getName()) ); } else { newSt.redefine((SimpleTypeImpl)oldSt); $runtime.currentSchema.addSimpleType(newSt,true); } }
private void action3()throws SAXException { XSSimpleType oldSt = $runtime.currentSchema.getSimpleType(newSt.getName()); if(oldSt==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_SIMPLETYPE,newSt.getName()) ); } else { newSt.redefine((SimpleTypeImpl)oldSt); $runtime.currentSchema.addSimpleType(newSt,true); } }
private void action3()throws SAXException { XSSimpleType oldSt = $runtime.currentSchema.getSimpleType(newSt.getName()); if(oldSt==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_SIMPLETYPE,newSt.getName()) ); } else { newSt.redefine((SimpleTypeImpl)oldSt); $runtime.currentSchema.addSimpleType(newSt,true); } }
private void action3()throws SAXException { XSSimpleType oldSt = $runtime.currentSchema.getSimpleType(newSt.getName()); if(oldSt==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_SIMPLETYPE,newSt.getName()) ); } else { newSt.redefine((SimpleTypeImpl)oldSt); $runtime.currentSchema.addSimpleType(newSt,true); } }