-
Notifications
You must be signed in to change notification settings - Fork 180
faq 84705304
by Ecaterina McCormick on 2016-09-19 11:12:32
I installed Matsim as a developer, imported it in Eclipse as a Maven project and disabled the validator for the XML files. However, there are 1180 errors in xml files while it doesn't seem to be anything wrong with the file. Did anybody else experience this? Please advise.
Thank you.
by Kai Nagel on 2016-09-19 13:46:12
Dear Ecaterina,
I can only answer this from the "management perspective". From that perspective, we do not check xml files in the repository for compliance; we only check when they are read into MATSim. Therefore, it is not unexpected that there are non-complying xml files in the repository.
It does not complain in my own eclipse, but I do not exactly know why. I would got to Preferences → Validation and play around with options (switch XML validation off).
The file you are showing (Person1.xml) clearly is not complying: The "(View Source ..." near the top is wrong, and the "-" at the beginning of several of the lines are wrong. Possibly, the file was copied from a screen view. Presumably, this is what is detected during xml validation. I cannot say why the error message is so unhelpful.
Maybe someone with a clearer understanding of xml validation in eclipse can chip in. In the meantime, at least note that non-compliant XML files in eclipse are not a problem. (Non-compliant XML files at runtime are, however, a problem.)
Best wishes
Kai
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq