41 import com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration;
42 import org.w3c.dom.Node;
43 import org.xml.sax.EntityResolver;
44 import org.xml.sax.ErrorHandler;
45 import org.xml.sax.InputSource;
46 import org.xml.sax.SAXException;
47 import org.xml.sax.SAXNotRecognizedException;
48 import org.xml.sax.SAXNotSupportedException;
49 import org.xml.sax.SAXParseException;
50 import org.xml.sax.ext.EntityResolver2;
51 import org.xml.sax.helpers.LocatorImpl;
52
53 /**
54 * This is the main Xerces DOM parser class. It uses the abstract DOM
55 * parser with a document scanner, a dtd scanner, and a validator, as
56 * well as a grammar pool.
57 *
58 * @author Arnaud Le Hors, IBM
59 * @author Andy Clark, IBM
60 *
61 * @version $Id: DOMParser.java,v 1.7 2010-11-01 04:40:09 joehw Exp $
62 */
63 public class DOMParser
64 extends AbstractDOMParser {
65
66 //
67 // Constants
68 //
69
70 // features
71
72 /** Feature identifier: EntityResolver2. */
73 protected static final String USE_ENTITY_RESOLVER2 =
74 Constants.SAX_FEATURE_PREFIX + Constants.USE_ENTITY_RESOLVER2_FEATURE;
75
76 protected static final String REPORT_WHITESPACE =
77 Constants.SUN_SCHEMA_FEATURE_PREFIX + Constants.SUN_REPORT_IGNORED_ELEMENT_CONTENT_WHITESPACE;
78
79 /** Property identifier: Security property manager. */
80 private static final String XML_SECURITY_PROPERTY_MANAGER =
81 Constants.XML_SECURITY_PROPERTY_MANAGER;
|
41 import com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration;
42 import org.w3c.dom.Node;
43 import org.xml.sax.EntityResolver;
44 import org.xml.sax.ErrorHandler;
45 import org.xml.sax.InputSource;
46 import org.xml.sax.SAXException;
47 import org.xml.sax.SAXNotRecognizedException;
48 import org.xml.sax.SAXNotSupportedException;
49 import org.xml.sax.SAXParseException;
50 import org.xml.sax.ext.EntityResolver2;
51 import org.xml.sax.helpers.LocatorImpl;
52
53 /**
54 * This is the main Xerces DOM parser class. It uses the abstract DOM
55 * parser with a document scanner, a dtd scanner, and a validator, as
56 * well as a grammar pool.
57 *
58 * @author Arnaud Le Hors, IBM
59 * @author Andy Clark, IBM
60 *
61 */
62 public class DOMParser
63 extends AbstractDOMParser {
64
65 //
66 // Constants
67 //
68
69 // features
70
71 /** Feature identifier: EntityResolver2. */
72 protected static final String USE_ENTITY_RESOLVER2 =
73 Constants.SAX_FEATURE_PREFIX + Constants.USE_ENTITY_RESOLVER2_FEATURE;
74
75 protected static final String REPORT_WHITESPACE =
76 Constants.SUN_SCHEMA_FEATURE_PREFIX + Constants.SUN_REPORT_IGNORED_ELEMENT_CONTENT_WHITESPACE;
77
78 /** Property identifier: Security property manager. */
79 private static final String XML_SECURITY_PROPERTY_MANAGER =
80 Constants.XML_SECURITY_PROPERTY_MANAGER;
|