|
|
@ -96,13 +96,13 @@ abstract class XMLDatastream { |
|
|
|
$this->pid = $pid; |
|
|
|
$this->pid = $pid; |
|
|
|
$this->dsid = $dsid; |
|
|
|
$this->dsid = $dsid; |
|
|
|
if ($xmlStr !== NULL) { |
|
|
|
if ($xmlStr !== NULL) { |
|
|
|
if(is_object($xmlStr) && get_class($xmlStr) == 'DOMDocument'){ |
|
|
|
if(is_object($xmlStr) && get_class($xmlStr) == DOMDocument) { |
|
|
|
$this->xml = $xmlStr; |
|
|
|
$this->xml = $xmlStr; |
|
|
|
}else{ |
|
|
|
} |
|
|
|
$this->xml = new DOMDocument('1.0', 'iso-8859-1'); |
|
|
|
else { |
|
|
|
|
|
|
|
$this->xml = new DOMDocument(); |
|
|
|
$this->xml->loadXML($xmlStr); |
|
|
|
$this->xml->loadXML($xmlStr); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|