For example if a XML file have below node,
<file name="com.nineleaf.tp-1.apk" source="original"> <format>Android Package Archive</format> <mtime>1407440118</mtime> <size>27723910</size> <md5>2221c4f14bd4178380df53428bc83cd6</md5> <crc32>7dedaf45</crc32> <sha1>cbb5ecbf3477ad0def0264bf294fbf22271ca313</sha1> </file>
Now, the resulting csv should have file-name and file-source (node name + attribute name) as a field and these values should go under these fields.
So, resulting csv header should be like.
<file-name, file-source, format, mtime, size, md5, crc32, sha1>