src/voku/helper/HtmlDomParser.php 1 location
|
@@ 298-304 (lines=7) @@
|
| 295 |
|
|
| 296 |
|
$documentFound = false; |
| 297 |
|
$sxe = \simplexml_load_string($html, \SimpleXMLElement::class, $optionsXml); |
| 298 |
|
if ($sxe !== false && \count(\libxml_get_errors()) === 0) { |
| 299 |
|
$domElementTmp = \dom_import_simplexml($sxe); |
| 300 |
|
if ($domElementTmp) { |
| 301 |
|
$documentFound = true; |
| 302 |
|
$this->document = $domElementTmp->ownerDocument; |
| 303 |
|
} |
| 304 |
|
} |
| 305 |
|
|
| 306 |
|
if ($documentFound === false) { |
| 307 |
|
|
src/voku/helper/XmlDomParser.php 1 location
|
@@ 139-145 (lines=7) @@
|
| 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 ($domElementTmp) { |
| 142 |
|
$documentFound = true; |
| 143 |
|
$this->document = $domElementTmp->ownerDocument; |
| 144 |
|
} |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
if ($documentFound === false) { |
| 148 |
|
|