My answer to the original post is not meant to be a two-step solution but actually presents two alternative solution (i.e. it is "either or").
Explaining XSLT is really out-of-scope for this forum. The basic idea for the XSLT solution is as follows:
-
Decide what information you need in your CSV file.
-
Save diagram as GraphML. GraphML is an XML format that contains all the information that can be entered in yEd.
-
Find the required information in the GraphML file.
-
Create a XSLT stylesheet that extracts the desired information from GraphML and formats said information in the required CSV format.
-
Run a XSLT processor with your XSLT stylesheet on your GraphML to actually produce the desired CSV file.
If you do not yet know XSLT you do have your work cut out for you - XSLT is unfortunately rather complex and quite involved to learn.