This shows how to convert xml to CSV
xmlstarlet \
sel -T -t -m /root/record \
-v "concat(@id,';',object/keyF,';',object/keyG)" \
-n test.xml
However, some of my values have have commas in the value. How do I get my CSV to parse correctly? Is there a way to add double quotes to the KeyF value? If so, what would be the syntax?
No comments:
Post a Comment