/**
  * parses the pcc.config file and stores the contents
  * @param string $config_path path or name of config file
  */
 public static function parse($config_path)
 {
     $parser = xml_parser_create();
     //xml_set_object($parser, $this);
     xml_set_element_handler($parser, array(PccConfig, 'tagStart'), array(PccConfig, 'tagEnd'));
     xml_set_character_data_handler($parser, array(PccConfig, 'tagContent'));
     xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
     $xml = file_get_contents($config_path);
     if (!xml_parse($parser, str_replace(array("\n", "\r", "\t"), '', $xml))) {
         echo xml_error_string(xml_get_error_code($parser));
     }
     PccConfig::$documentPath = PccConfig::processPath(PccConfig::$documentPath, realpath(dirname(__FILE__)));
     PccConfig::$markupsPath = PccConfig::processPath(PccConfig::$markupsPath, realpath(dirname(__FILE__)));
     PccConfig::$imageStampPath = PccConfig::processPath(PccConfig::$imageStampPath, realpath(dirname(__FILE__)));
     PccConfig::$webServiceUrl = PccConfig::$webServiceScheme . '://' . PccConfig::$webServiceHost . ':' . PccConfig::$webServicePort . '/' . PccConfig::$webServicePath;
 }