62 import org.w3c.dom.DOMException;
63 import org.w3c.dom.DOMStringList;
64 import org.w3c.dom.Document;
65 import org.w3c.dom.Node;
66 import org.w3c.dom.ls.LSException;
67 import org.w3c.dom.ls.LSInput;
68 import org.w3c.dom.ls.LSParser;
69 import org.w3c.dom.ls.LSParserFilter;
70 import org.w3c.dom.ls.LSResourceResolver;
71 import org.xml.sax.SAXException;
72
73
74 /**
75 * This is Xerces DOM Builder class. It uses the abstract DOM
76 * parser with a document scanner, a dtd scanner, and a validator, as
77 * well as a grammar pool.
78 *
79 * @author Pavani Mukthipudi, Sun Microsystems Inc.
80 * @author Elena Litani, IBM
81 * @author Rahul Srivastava, Sun Microsystems Inc.
82 * @version $Id: DOMParserImpl.java,v 1.8 2010-11-01 04:40:09 joehw Exp $
83 */
84
85
86 public class DOMParserImpl
87 extends AbstractDOMParser implements LSParser, DOMConfiguration {
88
89
90
91 // SAX & Xerces feature ids
92
93 /** Feature identifier: namespaces. */
94 protected static final String NAMESPACES =
95 Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
96
97 /** Feature id: validation. */
98 protected static final String VALIDATION_FEATURE =
99 Constants.SAX_FEATURE_PREFIX+Constants.VALIDATION_FEATURE;
100
101 /** XML Schema validation */
102 protected static final String XMLSCHEMA =
|
62 import org.w3c.dom.DOMException;
63 import org.w3c.dom.DOMStringList;
64 import org.w3c.dom.Document;
65 import org.w3c.dom.Node;
66 import org.w3c.dom.ls.LSException;
67 import org.w3c.dom.ls.LSInput;
68 import org.w3c.dom.ls.LSParser;
69 import org.w3c.dom.ls.LSParserFilter;
70 import org.w3c.dom.ls.LSResourceResolver;
71 import org.xml.sax.SAXException;
72
73
74 /**
75 * This is Xerces DOM Builder class. It uses the abstract DOM
76 * parser with a document scanner, a dtd scanner, and a validator, as
77 * well as a grammar pool.
78 *
79 * @author Pavani Mukthipudi, Sun Microsystems Inc.
80 * @author Elena Litani, IBM
81 * @author Rahul Srivastava, Sun Microsystems Inc.
82 */
83
84
85 public class DOMParserImpl
86 extends AbstractDOMParser implements LSParser, DOMConfiguration {
87
88
89
90 // SAX & Xerces feature ids
91
92 /** Feature identifier: namespaces. */
93 protected static final String NAMESPACES =
94 Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
95
96 /** Feature id: validation. */
97 protected static final String VALIDATION_FEATURE =
98 Constants.SAX_FEATURE_PREFIX+Constants.VALIDATION_FEATURE;
99
100 /** XML Schema validation */
101 protected static final String XMLSCHEMA =
|