src/voku/helper/HtmlDomParser.php 1 location
|
@@ 346-356 (lines=11) @@
|
| 343 |
|
|
| 344 |
|
$documentFound = false; |
| 345 |
|
$sxe = \simplexml_load_string($html, \SimpleXMLElement::class, $optionsXml); |
| 346 |
|
if ($sxe !== false && \count(\libxml_get_errors()) === 0) { |
| 347 |
|
$domElementTmp = \dom_import_simplexml($sxe); |
| 348 |
|
if ( |
| 349 |
|
$domElementTmp |
| 350 |
|
&& |
| 351 |
|
$domElementTmp->ownerDocument !== null |
| 352 |
|
) { |
| 353 |
|
$documentFound = true; |
| 354 |
|
$this->document = $domElementTmp->ownerDocument; |
| 355 |
|
} |
| 356 |
|
} |
| 357 |
|
|
| 358 |
|
if ($documentFound === false) { |
| 359 |
|
|
src/voku/helper/XmlDomParser.php 1 location
|
@@ 139-149 (lines=11) @@
|
| 136 |
|
|
| 137 |
|
$documentFound = false; |
| 138 |
|
$sxe = \simplexml_load_string($xml, \SimpleXMLElement::class, $optionsXml); |
| 139 |
|
if ($sxe !== false && \count(\libxml_get_errors()) === 0) { |
| 140 |
|
$domElementTmp = \dom_import_simplexml($sxe); |
| 141 |
|
if ( |
| 142 |
|
$domElementTmp |
| 143 |
|
&& |
| 144 |
|
$domElementTmp->ownerDocument !== null |
| 145 |
|
) { |
| 146 |
|
$documentFound = true; |
| 147 |
|
$this->document = $domElementTmp->ownerDocument; |
| 148 |
|
} |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
if ($documentFound === false) { |
| 152 |
|
|