when I run my python code I get the following error: Valid XML should start with '<?xml ...?>'
for i in range(1, 18):
hand_cascade = cv2.CascadeClassifier(f'./class/{i}.xml')
hand_cascades.append(hand_cascade)
My XML file :
<?xml version="1.0" encoding="UTF-8"?>
<root>
<worksheet name="Sheet1">
<Row index="1">
<filename>20230305_201635.jpg</filename>
<file_size>189436</file_size>
<file_attributes>{}</file_attributes>
<region_count>1</region_count>
<region_id>0</region_id>
<region_shape_attributes>
{"name":"polyline","all_points_x":[507,684,885,988,1039,1147,1214,1212,1196,1146,1135,1137,1106,1073,1051,1019,1009,978,968,935,906,781,728,661,575,476,446,447,419,387],"all_points_y":[3,97,201,224,233,278,321,347,359,352,347,364,379,368,347,331,346,344,343,350,350,318,306,317,298,243,198,185,163,146]}</region_shape_attributes>
<region_attributes>{}</region_attributes>
</Row>
</worksheet>
</root>
What's going on and how can I fix it?