Interface XMLParser
-
- All Known Implementing Classes:
JAXPParser
public interface XMLParser
-
-
Field Summary
Fields Modifier and Type Field Description static int
DTD_VALIDATION
static int
NONVALIDATING
static int
SCHEMA_VALIDATION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.xml.sax.EntityResolver
getEntityResolver()
org.xml.sax.ErrorHandler
getErrorHandler()
int
getValidationMode()
javax.xml.validation.Schema
getXMLSchema()
org.w3c.dom.Document
parse(java.io.File file)
org.w3c.dom.Document
parse(java.io.InputStream inputStream)
org.w3c.dom.Document
parse(java.io.Reader reader)
org.w3c.dom.Document
parse(java.net.URL url)
org.w3c.dom.Document
parse(javax.xml.transform.Source source)
org.w3c.dom.Document
parse(org.xml.sax.InputSource inputSource)
void
setEntityResolver(org.xml.sax.EntityResolver entityResolver)
void
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
void
setNamespaceAware(boolean isNamespaceAware)
void
setValidationMode(int validationMode)
void
setWhitespacePreserving(boolean isWhitespacePreserving)
void
setXMLSchema(java.net.URL url)
void
setXMLSchema(javax.xml.validation.Schema schema)
void
setXMLSchemas(java.lang.Object[] schemas)
-
-
-
Field Detail
-
NONVALIDATING
static final int NONVALIDATING
- See Also:
- Constant Field Values
-
DTD_VALIDATION
static final int DTD_VALIDATION
- See Also:
- Constant Field Values
-
SCHEMA_VALIDATION
static final int SCHEMA_VALIDATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setNamespaceAware
void setNamespaceAware(boolean isNamespaceAware)
-
setWhitespacePreserving
void setWhitespacePreserving(boolean isWhitespacePreserving)
-
getValidationMode
int getValidationMode()
-
setValidationMode
void setValidationMode(int validationMode)
-
getEntityResolver
org.xml.sax.EntityResolver getEntityResolver()
-
setEntityResolver
void setEntityResolver(org.xml.sax.EntityResolver entityResolver)
-
getErrorHandler
org.xml.sax.ErrorHandler getErrorHandler()
-
setErrorHandler
void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
-
setXMLSchema
void setXMLSchema(java.net.URL url) throws XMLPlatformException
- Throws:
XMLPlatformException
-
setXMLSchemas
void setXMLSchemas(java.lang.Object[] schemas) throws XMLPlatformException
- Throws:
XMLPlatformException
-
setXMLSchema
void setXMLSchema(javax.xml.validation.Schema schema) throws XMLPlatformException
- Throws:
XMLPlatformException
-
getXMLSchema
javax.xml.validation.Schema getXMLSchema() throws XMLPlatformException
- Throws:
XMLPlatformException
-
parse
org.w3c.dom.Document parse(org.xml.sax.InputSource inputSource) throws XMLPlatformException
- Throws:
XMLPlatformException
-
parse
org.w3c.dom.Document parse(java.io.File file) throws XMLPlatformException
- Throws:
XMLPlatformException
-
parse
org.w3c.dom.Document parse(java.io.InputStream inputStream) throws XMLPlatformException
- Throws:
XMLPlatformException
-
parse
org.w3c.dom.Document parse(java.io.Reader reader) throws XMLPlatformException
- Throws:
XMLPlatformException
-
parse
org.w3c.dom.Document parse(javax.xml.transform.Source source) throws XMLPlatformException
- Throws:
XMLPlatformException
-
parse
org.w3c.dom.Document parse(java.net.URL url) throws XMLPlatformException
- Throws:
XMLPlatformException
-
-