Made the Xml writer generate a @generated-path attribute for each file.

Required by built in (and probably 3rd party) legacy templates.