Note: The example code and the resulting population.xml file have been removed from the demand generation... archive because they don't reflect the recommended way this should be done. However those files are replaced by more recommended versions that are partly still under construction. Therefore they can be found within the matsim svn checkout in the package tutorial.example8DemandGeneration. If possible always try to use the MATSim API, i.e. all code within the packages below org.matsim.api. If this is not possible support us and report your problems on the developer mailing list.
The following slides are available for download from the tutorial sessions: