PhpSpreadsheet/tests/data/Reader/XEE/XEETestInvalidSimpleXML.xml
GreatHumorist 0477e6fcfe In Xml reader throw exception in case of invalid XML (#222)
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.
2017-09-20 14:20:12 +09:00

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>