src/voku/helper/HtmlDomParser.php 1 location
|
@@ 373-379 (lines=7) @@
|
370 |
|
|
371 |
|
$documentFound = false; |
372 |
|
$sxe = \simplexml_load_string($html, \SimpleXMLElement::class, $optionsXml); |
373 |
|
if ($sxe !== false && \count(\libxml_get_errors()) === 0) { |
374 |
|
$domElementTmp = \dom_import_simplexml($sxe); |
375 |
|
if ($domElementTmp) { |
376 |
|
$documentFound = true; |
377 |
|
$this->document = $domElementTmp->ownerDocument; |
378 |
|
} |
379 |
|
} |
380 |
|
|
381 |
|
if ($documentFound === false) { |
382 |
|
|
src/voku/helper/XmlParser.php 1 location
|
@@ 86-92 (lines=7) @@
|
83 |
|
|
84 |
|
$documentFound = false; |
85 |
|
$sxe = \simplexml_load_string($xml, \SimpleXMLElement::class, $optionsXml); |
86 |
|
if ($sxe !== false && \count(\libxml_get_errors()) === 0) { |
87 |
|
$domElementTmp = \dom_import_simplexml($sxe); |
88 |
|
if ($domElementTmp) { |
89 |
|
$documentFound = true; |
90 |
|
$this->document = $domElementTmp->ownerDocument; |
91 |
|
} |
92 |
|
} |
93 |
|
|
94 |
|
if ($documentFound === false) { |
95 |
|
|