function load($in_CSSML, $in_type = 'string')
 {
     if (parent::isError($load = parent::load())) {
         return $load;
     }
     if ($in_type == 'file' && @file_exists($in_CSSML)) {
         $this->CSSMLDoc = $in_CSSML;
     } elseif ($in_type == 'string' && is_string($in_CSSML)) {
         $this->CSSMLDoc = 'arg:/_xml';
         $this->arguments = array('/_xml' => $in_CSSML);
     } else {
         return PEAR::raiseError(null, XML_CSSML_INVALID_DATA, null, E_USER_WARNING, "Request data: {$in_CSSML}", 'XML_CSSML_Error', true);
     }
     $this->loaded = true;
 }
 function load($in_CSSML, $in_type = 'string')
 {
     if (parent::isError($load = parent::load())) {
         return $load;
     }
     // If the CSSML data is already a DOM object (can tell by checking for root)
     if ($in_type == 'object' && get_class($in_CSSML) == 'DomDocument') {
         $this->CSSMLDoc = $in_CSSML;
     } elseif ($in_type == 'file' && @file_exists($in_CSSML)) {
         $this->CSSMLDoc = domxml_open_file($in_CSSML);
     } elseif ($in_type == 'string' && is_string($in_CSSML)) {
         $this->CSSMLDoc = domxml_open_mem($in_CSSML);
     } else {
         return PEAR::raiseError(null, XML_CSSML_INVALID_DATA, null, E_USER_WARNING, "Request data: {$in_CSSML}", 'XML_CSSML_Error', true);
     }
     if (get_class($this->CSSMLDoc) != 'DomDocument') {
         return PEAR::raiseError(null, XML_CSSML_INVALID_DOCUMENT, null, E_USER_WARNING, "Request data: {$in_CSSML}", 'XML_CSSML_Error', true);
     }
     $this->loaded = true;
 }