Package org.apache.xerces.parsers

Examples of org.apache.xerces.parsers.StandardParserConfiguration

  • Properties @author Arnaud Le Hors, IBM @author Andy Clark, IBM @version $Id: StandardParserConfiguration.java,v 1.27 2002/09/27 14:15:08 neeraj Exp $

  •       return rdfXmlParser;
        }
        }

        public static RDFXMLParser create() {
            StandardParserConfiguration c = new StandardParserConfiguration();
            SAXParserWithEncodingCheck msp = new SAXParserWithEncodingCheck(c);
            RDFXMLParser a = new RDFXMLParser(msp);
            msp.setRdfXmlParser(a);
            return a;
        }
    View Full Code Here


                MessageGenerator messagegenerator = new MessageGenerator(rb);

                ControllerValidationInfo info = new ValidationInfoImpl(uri, messagegenerator);
                URIResolver uriResolver = new URIResolver();
                ((ValidationInfoImpl) info).setURIResolver(uriResolver);
                StandardParserConfiguration configuration = new StandardParserConfiguration();
                DOMParser builder = new LineNumberDOMParser(configuration);
                builder.parse(uri);

                DocumentBuilder db;
                DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    View Full Code Here

      private Document getDocument(String uri, InputStream inputStream, ControllerValidationInfo valinfo)
      {
        try
        {
          // Catch a premature EOF error to allow empty WSDL files to be considered valid.
          StandardParserConfiguration configuration = new StandardParserConfiguration()
          {
            protected XMLErrorReporter createErrorReporter()
            {
              return new XMLErrorReporter()
              {
    View Full Code Here

       */
      public static Document getDocument(InputSource inputSource, String desc) throws WSDLException
      {
        try
        {
          StandardParserConfiguration configuration = new StandardParserConfiguration()
          {
            protected XMLErrorReporter createErrorReporter()
            {
              return new XMLErrorReporter()
              {
    View Full Code Here

            // REVISIT: do we use shadowed or synchronized symbol table of
            //          SchemaSymbols.fSymbolTable?
            // REVISIT: don't use SchemaConfiguration internally
            //          we will get stack overflaw because
            //          XMLSchemaValidator will be instantiating XSDHandler...
            fSchemaParser = new DOMParser(new StandardParserConfiguration(new SchemaSymbols.SchemaSymbolTable()));
            // set ErrorHandler and EntityResolver (doesn't seem that
            // XMLErrorHandler or XMLEntityResolver will work with
            // standard DOMParser...
            //REVISIT: disable deferred dom expansion. there are bugs.
            try {
    View Full Code Here

         * Constructor
         * 
         * @param theFactory custom factory to use for model class lookup
         */
        public XMLParser(ModelClassFactory theFactory) {
            parser = new DOMParser(new StandardParserConfiguration());
            try {
                parser.setFeature("http://apache.org/xml/features/dom/include-ignorable-whitespace", false);
            }
            catch (Exception e) {
                log.error("Can't exclude whitespace from XML DOM", e);
    View Full Code Here

       */
      public ProfileParser(boolean alwaysValidateAgainstDTD) {

        this.alwaysValidate = alwaysValidateAgainstDTD;

        parser = new DOMParser(new StandardParserConfiguration());
        try {
          parser.setFeature("http://apache.org/xml/features/dom/include-ignorable-whitespace", false);
        } catch (Exception e) {
          log.error("Can't exclude whitespace from XML DOM", e);
        }
    View Full Code Here

                System.exit(1);
            }
            // Now we have a grammar pool and a SymbolTable; just
            // build a configuration and we're on our way!
            if(parserConfiguration == null) {
                parserConfiguration = new StandardParserConfiguration(sym, grammarPool);
            } else {
                // set GrammarPool and SymbolTable...
                parserConfiguration.setProperty(SYMBOL_TABLE, sym);
                parserConfiguration.setProperty(GRAMMAR_POOL, grammarPool);
            }
    View Full Code Here

                System.exit(1);
            }
            // Now we have a grammar pool and a SymbolTable; just
            // build a configuration and we're on our way!
            if(parserConfiguration == null) {
                parserConfiguration = new StandardParserConfiguration(sym, grammarPool);
            } else {
                // set GrammarPool and SymbolTable...
                parserConfiguration.setProperty(SYMBOL_TABLE, sym);
                parserConfiguration.setProperty(GRAMMAR_POOL, grammarPool);
            }
    View Full Code Here

          return rdfXmlParser;
        }
        }

        public static RDFXMLParser create() {
            StandardParserConfiguration c = new StandardParserConfiguration();
            SAXParserWithEncodingCheck msp = new SAXParserWithEncodingCheck(c);
            RDFXMLParser a = new RDFXMLParser(msp);
            msp.setRdfXmlParser(a);
            return a;
        }
    View Full Code Here

    TOP

    Related Classes of org.apache.xerces.parsers.StandardParserConfiguration

    Copyright © 2018 www.massapicom. 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.