src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/dtd/bindinfo/BindInfo.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 50,59 **** --- 50,61 ---- import com.sun.tools.internal.xjc.reader.Const; import com.sun.tools.internal.xjc.util.CodeModelClassFactory; import com.sun.tools.internal.xjc.util.ErrorReceiverFilter; import com.sun.tools.internal.xjc.util.ForkContentHandler; + import com.sun.xml.internal.bind.v2.util.XmlFactory; + import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.XMLReader;
*** 299,311 **** // set up the pipe line as : // /-> extensionChecker -> validator // parser-> -< // \-> DOM builder ! SAXParserFactory pf = SAXParserFactory.newInstance(); ! pf.setNamespaceAware(true); ! DOMBuilder builder = new DOMBuilder(); ErrorReceiverFilter controller = new ErrorReceiverFilter(receiver); validator.setErrorHandler(controller); XMLReader reader = pf.newSAXParser().getXMLReader(); reader.setErrorHandler(controller); --- 301,313 ---- // set up the pipe line as : // /-> extensionChecker -> validator // parser-> -< // \-> DOM builder ! SAXParserFactory pf = XmlFactory.createParserFactory(model.options.disableXmlSecurity); ! DocumentBuilderFactory domFactory = XmlFactory.createDocumentBuilderFactory(model.options.disableXmlSecurity); ! DOMBuilder builder = new DOMBuilder(domFactory); ErrorReceiverFilter controller = new ErrorReceiverFilter(receiver); validator.setErrorHandler(controller); XMLReader reader = pf.newSAXParser().getXMLReader(); reader.setErrorHandler(controller);