Class OEXMLParser

java.lang.Object
com.progress.open4gl.dynamicapi.OEXMLParser

public class OEXMLParser extends Object
  • Field Details

    • NAMESPACES_FEATURE_ID

      public static final String NAMESPACES_FEATURE_ID
      Namespaces feature id (http://xml.org/sax/features/namespaces).
      See Also:
    • VALIDATION_FEATURE_ID

      public static final String VALIDATION_FEATURE_ID
      Validation feature id (http://xml.org/sax/features/validation).
      See Also:
    • SCHEMA_VALIDATION_FEATURE_ID

      public static final String SCHEMA_VALIDATION_FEATURE_ID
      Schema validation feature id (http://apache.org/xml/features/validation/schema).
      See Also:
    • SCHEMA_FULL_CHECKING_FEATURE_ID

      public static final String SCHEMA_FULL_CHECKING_FEATURE_ID
      Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).
      See Also:
    • EXTERNAL_SCHEMA_LOCATION

      public static final String EXTERNAL_SCHEMA_LOCATION
      See Also:
    • WSADNAMESPACE

      public static final String WSADNAMESPACE
      See Also:
    • WSADSCHEMA

      public static final String WSADSCHEMA
      See Also:
    • m_dlc

      protected String m_dlc
    • docBuilderFactory

      protected DocumentBuilderFactory 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

  • Method Details

    • encodeFilePath

      public static String encodeFilePath(String path)
      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

      public Document parseFile(String fileName) throws IOException
      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.