我的xml文件包含此格式的数据
<?xml version="1.0" encoding="utf-8"?>
<badges>
<row Id="82946" UserId="3718" Name="Teacher" Date="2008-09-15T08:55:03.923" />
<row Id="82947" UserId="994" Name="Teacher" Date="2008-09-15T08:55:03.957" />
<row Id="82949" UserId="3893" Name="Teacher" Date="2008-09-15T08:55:03.957" />
</badges>
</xml>
如何以这种方式将其保存为csv格式 - 3718,老师,2008-09-15T08:55:03.923 994,教师,2008-09-15T08:55:03.957