Class XMLValidator


  • public class XMLValidator
    extends java.lang.Object
    Since:
    MicroStrategy Web 7.3.1 or earlier
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLValidator()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean validate​(AppContext appContext)  
      static boolean validate​(java.lang.String rootPath)
      validates the pageConfig xml file.
      static boolean validate​(java.lang.String rootPath, java.lang.String pageConfigPath, java.lang.String styleCatalogPath, java.lang.String validationScriptPath)  
      • Methods inherited from class java.lang.Object

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

      • XMLValidator

        public XMLValidator()
    • Method Detail

      • validate

        public static boolean validate​(java.lang.String rootPath)
                                throws WebAppException
        validates the pageConfig xml file.
        Parameters:
        rootPath - specifies the rootPath for the configuration and script files. The page config file is assumed to be located in the path WEB-INF\xml\pageConfig.xml relative to the rootPath. The style catalog is assumed to be located in the path WEB-INF\xml\styleCatalog.xml relative to the rootPath. Similarly script validation file is assumed to be located in the path WEB-INF\xml\pageConfigValidator.xml relative to the rootPath. For validation rules related file existence, rootPath is assumed to be the root for the relative paths specified in the node values.
        Returns:
        boolean true if the pageConfig is validated.
        Throws:
        WebAppException - if an error happens during validation
      • validate

        public static boolean validate​(java.lang.String rootPath,
                                       java.lang.String pageConfigPath,
                                       java.lang.String styleCatalogPath,
                                       java.lang.String validationScriptPath)
                                throws WebAppException
        Throws:
        WebAppException