/**
  * @access 	public
  * @param 	string			$element				
  * @param 	object			$core					
  * @param 	object			$xpath					
  * @return 	void
  */
 public function load($element, $core, $xpath)
 {
     $this->element = $element;
     $this->core = $core;
     $this->xpath = $xpath;
     $this->root = $this->core->documentElement;
     $this->nameSpaces = Fonction::getNamespace();
 }
 /**
  * @access 	public
  * @param 	string			$file_name			
  * @param 	string			$path_save			
  * @param 	string			$path_templates		
  * @param 	boolean			$format_output		
  * @param 	boolean			$white_space			
  * @return 	void
  */
 public function load($file_name, $path_save, $path_templates, $format_output, $white_space)
 {
     try {
         $this->fileName = $file_name;
         $this->pathTemplates = Fonction::removeLastSlash($path_templates);
         $this->pathSave = Fonction::removeLastSlash($path_save);
         $this->core = new DOMDocument();
         $this->core->preserveWhiteSpace = $white_space;
         $this->core->formatOutput = $format_output;
         if (!@$this->core->load($this->pathTemplates . '/' . $this->fileName)) {
             throw new Exception('');
         }
         $this->xpath = new DOMXPath($this->core);
         $this->root = $this->core->documentElement;
         $this->nameSpaces = Fonction::getNamespace();
     } catch (Exception $e) {
         throw $e;
     }
 }