[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] XML files and syntax errors with SAGA
|
Indeed, no obvious problem is apparent with the file though sometimes these error messages point to the wrong line. I recommend that you identify the problematic content by successively removing lines and attributes within lines until the parsing error goes away. If the triggering content looks innocent, please report back.
The file " activity_generation.merged.rou.xml" is attached now.
In the meantime, I started sumo-gui with --xml-validation equal never as below:
sumoCmd = ["--xml-validation", "never",
"-c", Files.DEFAULT_SUMO_CONFIG.split(os.sep)[1],
"--ignore-route-errors", "--tripinfo-output", Files.DEFAULT_TRIP_INFO, "--start"]
Hope this is a nice track ?
please attach the file.
Hi everyone,
I'm using sumo simulation and particularly SAGA to generate population activities that are
represented by the activity_generation.merged.rou.xml XML file. To this file I added params via py scripts
such as this one which indicates the zone of the person to which belongs :
<param key="zone" value="-99757" />
Simulation runs about 3000 seconds and I get errors such as :
Error: equal sign
expected ||||||OR|||||| Error: whitespace expected
In file
'activity/activity_generation.merged.rou.xml'
At line/column 24762/29.
By verifying the file the syntax is Ok.
As a solution, I unified all XML manipulation using lxml.etree instead of mixing both lxml and standard ElementTree. But I still get the same errors.
Thank you very much for your solutions suggestions.
Best regards.
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
--
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user