0477e6fcfe
When the xml file is not a standard xml file, the `simplexml_load_string` will return false, this will cause an error on "$xml->getNamespaces(true);" . So instead of showing the error, we throw an exception.
9 lines
161 B
XML
9 lines
161 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<data>R&d</data>
|
|
<data>R<d</data>
|
|
<data>R>d</data>
|
|
<data>R'd</data>
|
|
<data>R"d</data>
|
|
</root>
|