I wrote a a query xmlstarlet sel -T -t -m badges/row -v "concat(@row, ',')"
-n Badges.xml and the output is repeated as:
NaNNaNNaN...
for what is likely the amount of rows in the Badges.xml file. I am following this tut: https://www.joyofdata.de/blog/transforming-xml-document-into-csv-using-xmlstarlet/ to transform the xml formatted data to CSV. Anyone understand what is going on here?
Edit, here are some sample rows of the XML file:
<?xml version="1.0" encoding="utf-8"?>
<badges>
<row Id="1" UserId="1" Name="Autobiographer" Date="2016-08-02T15:56:07.133"
Class="3" TagBased="False" />
<row Id="2" UserId="8" Name="Autobiographer" Date="2016-08-02T15:56:07.133"
Class="3" TagBased="False" />
<row Id="3" UserId="9" Name="Autobiographer" Date="2016-08-02T15:56:07.133"
Class="3" TagBased="False" />
<row Id="4" UserId="19" Name="Autobiographer" Date="2016-08-
02T15:56:07.133" Class="3" TagBased="False" />
<row Id="5" UserId="27" Name="Autobiographer" Date="2016-08-
02T15:56:07.133" Class="3" TagBased="False" />
