Package com.progress.open4gl.dynamicapi
Class OEXMLParser
java.lang.Object
com.progress.open4gl.dynamicapi.OEXMLParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DocumentBuilderFactory
static final String
protected String
protected boolean
protected com.progress.open4gl.dynamicapi.OEXMLParser.XMLErrorHandler
protected com.progress.common.ehnlog.AppLogger
static final String
Namespaces feature id (http://xml.org/sax/features/namespaces).static final String
Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).static final String
Schema validation feature id (http://apache.org/xml/features/validation/schema).static final String
Validation feature id (http://xml.org/sax/features/validation).static final String
static final String
-
Constructor Summary
ConstructorsConstructorDescriptionOEXMLParser
(String dlc, boolean validate, com.progress.common.ehnlog.AppLogger log) -
Method Summary
-
Field Details
-
NAMESPACES_FEATURE_ID
Namespaces feature id (http://xml.org/sax/features/namespaces).- See Also:
-
VALIDATION_FEATURE_ID
Validation feature id (http://xml.org/sax/features/validation).- See Also:
-
SCHEMA_VALIDATION_FEATURE_ID
Schema validation feature id (http://apache.org/xml/features/validation/schema).- See Also:
-
SCHEMA_FULL_CHECKING_FEATURE_ID
Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).- See Also:
-
EXTERNAL_SCHEMA_LOCATION
- See Also:
-
WSADNAMESPACE
- See Also:
-
WSADSCHEMA
- See Also:
-
m_dlc
-
docBuilderFactory
-
m_errHandler
protected com.progress.open4gl.dynamicapi.OEXMLParser.XMLErrorHandler m_errHandler -
m_log
protected com.progress.common.ehnlog.AppLogger m_log -
m_doLog
protected boolean m_doLog
-
-
Constructor Details
-
OEXMLParser
public OEXMLParser(String dlc, boolean validate, com.progress.common.ehnlog.AppLogger log) throws SAXException, ParserConfigurationException
-
-
Method Details
-
encodeFilePath
URL encodes a schema location string. This is required when the schema path includes a space in a directory name. In this case, a file:// URL is created and space characters are encoded with a %20.- Parameters:
path
- A string that contains a directory path to an XML Schema file.- Returns:
- String Contains the encoded value of the schema location.
-
parseFile
Parses an XML file and returns a DOM Document.- Parameters:
fileName
- A String that contains the full or relative path to an XML document.- Returns:
- org.w3c.dom.Document Contains the parsed String, or null if errors are encountered
- Throws:
IOException
- Thrown if an IOException occurs when parsing the file.
-