public class XSParser extends Object
| Constructor and Description |
|---|
XSParser() |
XSParser(LSResourceResolver entityResolver,
DOMErrorHandler errorHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
enableSchema11()
for schema version "1.1", xerces 2.11.0-beta must be in classpath
|
static org.apache.xerces.xs.XSModel |
getBuiltInSchema() |
void |
honourAllSchemaLocations()
enables feature "http://apache.org/xml/features/honour-all-schemaLocations"
see https://xerces.apache.org/xerces2-j/features.html
|
org.apache.xerces.xs.XSModel |
parse(org.apache.xerces.xs.LSInputList inputList) |
org.apache.xerces.xs.XSModel |
parse(String... uris) |
org.apache.xerces.xs.XSModel |
parse(String uri) |
org.apache.xerces.xs.XSModel |
parseString(String schema,
String baseURI)
Parse an XML Schema document from String specified
|
void |
setParameter(String name,
Object value) |
public XSParser()
public XSParser(LSResourceResolver entityResolver, DOMErrorHandler errorHandler)
public void honourAllSchemaLocations()
public void enableSchema11()
public org.apache.xerces.xs.XSModel parse(String uri)
public org.apache.xerces.xs.XSModel parse(String... uris)
public org.apache.xerces.xs.XSModel parse(org.apache.xerces.xs.LSInputList inputList)
public org.apache.xerces.xs.XSModel parseString(String schema, String baseURI)
schema - String data to parse. If provided, this will always be treated as a
sequence of 16-bit units (UTF-16 encoded characters). If an XML
declaration is present, the value of the encoding attribute
will be ignored.baseURI - The base URI to be used for resolving relative
URIs to absolute URIs.public static org.apache.xerces.xs.XSModel getBuiltInSchema()
Copyright © 2021. All rights reserved.