{"id":7505,"date":"2017-09-05T10:50:11","date_gmt":"2017-09-05T08:50:11","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=7505"},"modified":"2017-09-05T10:50:11","modified_gmt":"2017-09-05T08:50:11","slug":"xmlsh-csv2xml","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2017\/09\/05\/xmlsh-csv2xml\/","title":{"rendered":"XML Shell: xmlsh: csv2xml"},"content":{"rendered":"<ul>\n<li><a href=\"http:\/\/www.xmlsh.org\">http:\/\/www.xmlsh.org<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/xmlsh\/xmlsh1_3\">https:\/\/github.com\/xmlsh\/xmlsh1_3<\/a><\/li>\n<li>they also provide a Java .jar file and a shell script etc around it, so you can run it on your platform<\/li>\n<li><a href=\"http:\/\/www.xmlsh.org\/CommandCsv2xml\">http:\/\/www.xmlsh.org\/CommandCsv2xml<\/a>\u00a0\u2013 builtin <em>csv2xml<\/em><\/li>\n<\/ul>\n<p>A couple of command line options we are using:<\/p>\n<ul>\n<li><em>-delim &#8216;;&#8217;<\/em> &#8211;\u00a0German excel files get exported to CSV files with &#8216;;&#8217; as column separator \/ delimiter,\u00a0so when we read such CSV files,\u00a0we have to take into account this delimiter<\/li>\n<li><em>-header<\/em> &#8211;\u00a0read 1 row from the csv file and use as column names (element or attribute)<\/li>\n<li><em>-attr<\/em> &#8211; output in attribute normal format (each column is an attribute), default row normal format<\/li>\n<\/ul>\n<blockquote><p>$ csv2xml -delim &#8216;;&#8217; -header -attr my_file.csv<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/www.xmlsh.org https:\/\/github.com\/xmlsh\/xmlsh1_3 they also provide a Java .jar file and a shell script etc around it, so you can run it on your platform http:\/\/www.xmlsh.org\/CommandCsv2xml\u00a0\u2013 builtin csv2xml A couple of command line options we are using: -delim &#8216;;&#8217; &#8211;\u00a0German excel files get exported to CSV files with &#8216;;&#8217; as column separator \/ delimiter,\u00a0so when we [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[75],"tags":[977],"class_list":["post-7505","post","type-post","status-publish","format-standard","hentry","category-csv","tag-csv2xml"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1X3","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/7505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=7505"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/7505\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=7505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=7505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=7505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}