-
- All Known Implementing Classes:
JAXPParser,XDKParser
public interface XMLParser
-
-
Field Summary
Fields Modifier and Type Field Description static intDTD_VALIDATIONstatic intNONVALIDATINGstatic intSCHEMA_VALIDATION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityResolvergetEntityResolver()ErrorHandlergetErrorHandler()intgetValidationMode()SchemagetXMLSchema()Documentparse(File file)Documentparse(InputStream inputStream)Documentparse(Reader reader)Documentparse(URL url)Documentparse(Source source)Documentparse(InputSource inputSource)voidsetEntityResolver(EntityResolver entityResolver)voidsetErrorHandler(ErrorHandler errorHandler)voidsetNamespaceAware(boolean isNamespaceAware)voidsetValidationMode(int validationMode)voidsetWhitespacePreserving(boolean isWhitespacePreserving)voidsetXMLSchema(URL url)voidsetXMLSchema(Schema schema)voidsetXMLSchemas(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
EntityResolver getEntityResolver()
-
setEntityResolver
void setEntityResolver(EntityResolver entityResolver)
-
getErrorHandler
ErrorHandler getErrorHandler()
-
setErrorHandler
void setErrorHandler(ErrorHandler errorHandler)
-
setXMLSchema
void setXMLSchema(URL url) throws XMLPlatformException
- Throws:
XMLPlatformException
-
setXMLSchemas
void setXMLSchemas(Object[] schemas) throws XMLPlatformException
- Throws:
XMLPlatformException
-
setXMLSchema
void setXMLSchema(Schema schema) throws XMLPlatformException
- Throws:
XMLPlatformException
-
getXMLSchema
Schema getXMLSchema() throws XMLPlatformException
- Throws:
XMLPlatformException
-
parse
Document parse(InputSource inputSource) throws XMLPlatformException
- Throws:
XMLPlatformException
-
parse
Document parse(File file) throws XMLPlatformException
- Throws:
XMLPlatformException
-
parse
Document parse(InputStream inputStream) throws XMLPlatformException
- Throws:
XMLPlatformException
-
parse
Document parse(Reader reader) throws XMLPlatformException
- Throws:
XMLPlatformException
-
parse
Document parse(Source source) throws XMLPlatformException
- Throws:
XMLPlatformException
-
parse
Document parse(URL url) throws XMLPlatformException
- Throws:
XMLPlatformException
-
-