Skip to content

Order of elements under a node is not mentioned, which create csv with mis-order entry? #33

@urwithajit9

Description

@urwithajit9

A XML node will have fix number of elements and they can be in order from one node to another node. If during conversion a fixed order is not used then the output csv will have mis-matched values. if XML don't have XSD then well formed XML can have elements in any order among different node. During conversion, we can control the output order of elements and hence the csv will write values under header fields. for example, below example have same elements but order are different but in a output csv value must match with appropriate header field.



<files>

<file name="com.nineleaf.tp-1.apk" source="original">
     <format>Android Package Archive</format>
     <mtime>1407440118</mtime>
      <size>27723910</size>
      <md5>2221c4f14bd4178380df53428bc83cd6</md5>
    <crc32>7dedaf45</crc32>
     <sha1>cbb5ecbf3477ad0def0264bf294fbf22271ca313</sha1>
</file>

<file name="com.striker.lalosfeliz-6.apk" source="original">
        <mtime>1413362341</mtime>
       <size>2705561</size>
       <md5>53033d768f5fbc8ec2913d42fce7c9e2</md5>
        <crc32>e6f36b15</crc32>
       <sha1>ae9c4bc0730f67cba372f09c03da27fc954fa5e6</sha1>
       <format>Android Package Archive</format>
</file>
</files>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions