I gang

Simple Perl XML to CSV script

Need a small Perl script that extracts XML attributes (ID for element) and nested child elements from a very large XML document (10MB+) and converts each element into a variable, then print to a flat file. The number of rel and target varies for each element and there will need to be logic to deal with this. Exact document provided after bidding completed.

Note: DO NOT OVERBID THIS PROJECT. FIRST $30 GETS IT. THIS SHOULD ONLY TAKE ABOUT 15 MINUTES.

e.g.

<element id="1" text="example 1">

<rel>rel1</rel>

<target>target1</target>

<rel>rel2</rel>

<target>target2</target>

<rel>rel3</rel>

<target>target3</target>

<element id="2" text="example 2">

<rel>rel1</rel>

<target>target1</target>

<element id="3" text="example 3">

<rel>rel1</rel>

<target>target1</target>

<rel>rel2</rel>

<target>target2</target>

<rel>rel3</rel>

<target>target3</target>

<rel>rel4</rel>

<target>target4</target>

....

desired output:

Element ID: 1, Text: example 1, Rel: rel 1, Target: target1

Element ID: 1, Text: example 1, Rel: rel 2, Target: target2

Element ID: 1, Text: example 1, Rel: rel 3, Target: target3

Element ID: 2, Text: example 2, Rel: rel 1, Target: target1

Element ID: 2, Text: example 2, Rel: rel 2, Target: target2

etc.

Færdigheder: Perl

Se mere: perl xml csv, perl script xml csv, extracts, large xml csv, output script, nested, perl script file, simple csv perl script, csv text file, large script, completed script, small project perl, csv xml perl script, perl script xml flat, simple deal script, file csv, project simple output, perl output, perl script text, script project bidding, xml text, converts xml, perl xml csv script, flat text csv, simple perl flat file

Om arbejdsgiveren:
( 1 bedømmelse ) New York, United States

Projekt-ID: #985431

Tildelt til:

alanhaggai

I will be able to work on this project. Please see the private message that I have sent you.

$30 USD på 1 dag
(7 bedømmelser)
3.6