Skip to main content

[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.

Am Mi., 2. Feb. 2022 um 10:22 Uhr schrieb Arbi Alaouy <estdoctor@xxxxxxxxx>:
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 ?

Le mer. 2 févr. 2022 à 08:56, Jakob Erdmann <namdre.sumo@xxxxxxxxx> a écrit :
please attach the file.

Am Di., 1. Feb. 2022 um 10:15 Uhr schrieb Arbi Alaouy <estdoctor@xxxxxxxxx>:
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.

--
El-arbi El-alaouy


_______________________________________________
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


--
El-arbi El-alaouy


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top