Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to extract node attributes as field in resulting csv or json? #32

Open
urwithajit9 opened this issue Apr 27, 2016 · 3 comments
Open

Comments

@urwithajit9
Copy link

urwithajit9 commented Apr 27, 2016

For example if a XML file have below node,
<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>

Now, the resulting csv should have file-name and file-source (node name + attribute name) as a field and these values should go under these fields.

So, resulting csv header should be like.

<file-name, file-source, format, mtime, size, md5, crc32, sha1>

@knadh
Copy link
Owner

knadh commented Apr 27, 2016

Your post is incomplete, it seems.

@urwithajit9
Copy link
Author

Now, i have updated the descriptions. am I able to explain, now?

@knadh
Copy link
Owner

knadh commented Apr 27, 2016

To achieve this, you'll have to extend the library yourself and amend the head fields as you want them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants