Is there an easy way to convert (part of) XML data back to tabular data, so comma separated values or tab separated or Excel? I sometimes get XML log files, and for clarity and comparing it more easily with other sources it would be easier to extract the data just as a flat table, for example in Excel.
I've looked at the XMLtools plug-in and other plug-ins but couldn't find any option. So for example the data is like this:
<ChildTaskStatus>
<LoadSubStatus>
<TaskStatus>RanToCompletion</TaskStatus>
<Template>NL_CM_0_1_1</Template>
<ItemsTotal>41219</ItemsTotal>
<ElapsedTime>00:00:04</ElapsedTime>
</LoadSubStatus>
<LoadSubStatus>
<TaskStatus>RanToCompletion</TaskStatus>
<Template>NL_CM_18_7_1</Template>
<ItemsTotal>168930</ItemsTotal>
<ElapsedTime>00:00:53</ElapsedTime>
</LoadSubStatus>
<LoadSubStatus>
<TaskStatus>RanToCompletion</TaskStatus>
<Template>NL_CM_12_8_1</Template>
<ItemsTotal>231122</ItemsTotal>
<ElapsedTime>00:00:43</ElapsedTime>
</LoadSubStatus>
</ChildTaskStatus>
And I would like to extract the data to just this (exact format doesn't matter, any csv/tab separated or tabular format will do):
TaskStatus | Template | ItemsTotal | ElapsedTime |
---|---|---|---|
RanToCompletion | NL_CM_0_1_1 | 41219 | 00:00:04 |
RanToCompletion | NL_CM_18_7_1 | 168930 | 00:00:53 |
RanToCompletion | NL_CM_12_8_1 | 231122 | 00:00:43 |
BTW, the actual file is larger obviously, and with more tree nodes.
So, is there any way to do this easily without having to write a script for each different instance, for example an option in Excel or Notepad++? I understand I would have to at least specify the XML tags for the four columns, but I mean is there a tool or app to do this?
|
s were just added for readability, I've updated the question description, I meant just any csv or tabular format