ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.
原xml文件内容:
<?xml version="1.0" encoding="UTF-8"?>
<dataset name="Lara_UrbanSeq1" version="0.5" comments="Public database: http://www.lara.prd.fr/benchmarks/trafficlightsrecognition">
<frame number="6695" sec="487" ms="829">
<objectlist>
<object id="18">
<orientation>90</orientation>
<box h="39" w="18" xc="294" yc="34"/>
<appearance>appear<