Generate xml files from source based on indentation