public class SaxParser extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Field and Description |
---|---|
protected static String |
DYNAMIC_VALIDATION_FEATURE_ID
Dynamic validation feature id
(http://apache.org/xml/features/validation/dynamic).
|
protected static String |
NAMESPACE_PREFIXES_FEATURE_ID
Namespace prefixes feature id
(http://xml.org/sax/features/namespace-prefixes).
|
protected static String |
NAMESPACES_FEATURE_ID
Namespaces feature id (http://xml.org/sax/features/namespaces).
|
protected static String |
SCHEMA_FULL_CHECKING_FEATURE_ID
Schema full checking feature id
(http://apache.org/xml/features/valid...full-checking).
|
protected static String |
SCHEMA_NONS_LOCATION_ID
Schema nons location id.
|
protected static String |
SCHEMA_VALIDATION_FEATURE_ID
Schema validation feature id
(http://apache.org/xml/features/validation/schema).
|
protected static String |
VALIDATION_FEATURE_ID
Validation feature id (http://xml.org/sax/features/validation).
|
Modifier and Type | Method and Description |
---|---|
String |
getSrcXml() |
void |
parse()
SAX Parser.
|
void |
parse(String srcXsd) |
void |
setSrcXml(String srcXml) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
protected static final String NAMESPACES_FEATURE_ID
protected static final String NAMESPACE_PREFIXES_FEATURE_ID
protected static final String VALIDATION_FEATURE_ID
protected static final String SCHEMA_VALIDATION_FEATURE_ID
protected static final String SCHEMA_FULL_CHECKING_FEATURE_ID
protected static final String DYNAMIC_VALIDATION_FEATURE_ID
protected static final String SCHEMA_NONS_LOCATION_ID
public SaxParser(String srcXml)
srcXml
- the srcXmlpublic final void parse()
public final String getSrcXml()
public final void setSrcXml(String srcXml)
srcXml
- the srcXml to setpublic final void parse(String srcXsd) throws ParserConfigurationException, SAXException, MalformedURLException
ParserConfigurationException
- exceptionSAXException
- exceptionMalformedURLException
- exceptionCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.