src/voku/helper/HtmlDomParser.php 1 location
|
@@ 422-432 (lines=11) @@
|
419 |
|
|
420 |
|
$documentFound = false; |
421 |
|
$sxe = \simplexml_load_string($html, \SimpleXMLElement::class, $optionsXml); |
422 |
|
if ($sxe !== false && \count(\libxml_get_errors()) === 0) { |
423 |
|
$domElementTmp = \dom_import_simplexml($sxe); |
424 |
|
if ( |
425 |
|
$domElementTmp |
426 |
|
&& |
427 |
|
$domElementTmp->ownerDocument |
428 |
|
) { |
429 |
|
$documentFound = true; |
430 |
|
$this->document = $domElementTmp->ownerDocument; |
431 |
|
} |
432 |
|
} |
433 |
|
|
434 |
|
if ($documentFound === false) { |
435 |
|
|
src/voku/helper/XmlDomParser.php 1 location
|
@@ 140-150 (lines=11) @@
|
137 |
|
|
138 |
|
$documentFound = false; |
139 |
|
$sxe = \simplexml_load_string($xml, \SimpleXMLElement::class, $optionsXml); |
140 |
|
if ($sxe !== false && \count(\libxml_get_errors()) === 0) { |
141 |
|
$domElementTmp = \dom_import_simplexml($sxe); |
142 |
|
if ( |
143 |
|
$domElementTmp |
144 |
|
&& |
145 |
|
$domElementTmp->ownerDocument |
146 |
|
) { |
147 |
|
$documentFound = true; |
148 |
|
$this->document = $domElementTmp->ownerDocument; |
149 |
|
} |
150 |
|
} |
151 |
|
|
152 |
|
if ($documentFound === false) { |
153 |
|
|