Class ParserTester


  • public class ParserTester
    extends java.lang.Object
    Test the MSParser
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String dtdUrl  
      (package private) java.lang.String modelDocType  
    • Constructor Summary

      Constructors 
      Constructor Description
      ParserTester​(java.lang.String dtdFile, int parserType)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      The ParserTester tests MSXML parser and Xerces Parser.
      void testFile​(java.lang.String testFile)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • modelDocType

        java.lang.String modelDocType
      • dtdUrl

        java.lang.String dtdUrl
    • Constructor Detail

      • ParserTester

        public ParserTester​(java.lang.String dtdFile,
                            int parserType)
                     throws XOMException,
                            java.io.IOException
        Throws:
        XOMException
        java.io.IOException
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws XOMException,
                                java.io.IOException
        The ParserTester tests MSXML parser and Xerces Parser. Arguments:
        1. The DTD file of the XML file
        2. The XML file for this DTD file

        Throws:
        XOMException
        java.io.IOException