Tamamlanmış

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.

Beceriler: Perl

Daha fazlasını gör: simple xml csv perl script, 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, document simple project

İşveren Hakkında:
( 1 değerlendirme ) New York, United States

Proje NO: #985431

Seçilen:

alanhaggai

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

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% USD
(7 Değerlendirme)
3.6