Examples of DTDEntityResolver

  • org.jboss.seam.util.DTDEntityResolver
    .com/products/seam/ is searched for as a classpath resource in the classloader which loaded the Seam classes.
  • Any systemId URL using classpath as the scheme (i.e. starting with classpath:// is searched for as a classpath resource using first the current thread context classloader and then the classloader which loaded the Seam classes.

    Any entity references which cannot be resolved in relation to the above rules result in returning null, which should force the SAX reader to handle the entity reference in its default manner.

  • org.pentaho.platform.config.DtdEntityResolver

  • Examples of org.hibernate.internal.util.xml.DTDEntityResolver

        }   
      }
     
      private SAXReader getSAXReader() {
          SAXReader xmlReader = new SAXReader();
          xmlReader.setEntityResolver(new DTDEntityResolver() );
          xmlReader.setValidation(true);
          return xmlReader;
        }
    View Full Code Here

    Examples of org.hibernate.internal.util.xml.DTDEntityResolver

        sessions = getCfg().buildSessionFactory();
      }
     
      public SAXReader getSAXReader() {
          SAXReader xmlReader = new SAXReader();
          xmlReader.setEntityResolver(new DTDEntityResolver() );
          xmlReader.setValidation(true);
          return xmlReader;
        }
    View Full Code Here

    Examples of org.jboss.seam.util.DTDEntityResolver

                    try {
                        SAXReader saxReader = new SAXReader();
                        saxReader.setMergeAdjacentText(true);

                        if (isSchemaValidating()) {
                            saxReader.setEntityResolver(new DTDEntityResolver());
                            saxReader.setValidation(true);
                            saxReader.setFeature("http://apache.org/xml/features/validation/schema",true);
                        }

                        elements.put(fileDescriptor.getName(), saxReader.read(fileDescriptor.getUrl().openStream()).getRootElement());
    View Full Code Here

    Examples of org.pentaho.platform.config.DtdEntityResolver

      public EmailConfigurationXml( File pentahoXmlFile ) throws IOException, DocumentException {
        if ( null == pentahoXmlFile ) {
          throw new IllegalArgumentException();
        }
        loadFromConfigurationDocument( XmlDom4JHelper.getDocFromFile( pentahoXmlFile, new DtdEntityResolver() ) );
      }
    View Full Code Here

    Examples of org.pentaho.platform.config.DtdEntityResolver

      public EmailConfigurationXml( String xml ) throws DocumentException, XmlParseException {
        if ( null == xml ) {
          throw new IllegalArgumentException();
        }
        loadFromConfigurationDocument( XmlDom4JHelper.getDocFromString( xml, new DtdEntityResolver() ) );
      }
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.