public class

XMLValidator

extends Object
java.lang.Object
   ↳ com.microstrategy.web.app.XMLValidator

Summary

Public Constructors
XMLValidator()
Public Methods
static boolean validate(String rootPath)
validates the pageConfig xml file.
static boolean validate(String rootPath, String pageConfigPath, String styleCatalogPath, String validationScriptPath)
static boolean validate(AppContext appContext)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public XMLValidator ()

Public Methods

public static boolean validate (String rootPath)

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

public static boolean validate (String rootPath, String pageConfigPath, String styleCatalogPath, String validationScriptPath)

public static boolean validate (AppContext appContext)