Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > CSV to ~XML (to...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 10939 of 12261
Post > Topic >>

CSV to ~XML (total newbie)

by travis.bowers@[EMAIL PROTECTED] (Travis) Apr 14, 2008 at 02:24 PM

Hi there,

Never written a line of Perl until now but I think it might be perfect
for this little program I need.

I have some CSV files that are given to me and I need to spit them in
a format that kind of looks like XML but I don't think it is. The
structure looks something like this:

<ADDRESSES>
<struct>
    <field name="First" value="John" />
    <field name="Last" value="Doe" />
    <field name="City" value="San Francisco" />
</struct><struct>
    <field name="First" value="Jane" />
    <field name="Last" value="Johnson" />
    <field name="City" value="New York City" />
</struct>
</ADDRESSES>


I don't think that's standard XML is it? If so please let me know so I
can change my google searching on the topic.

Anyway, I get CSV's that look something like this:

First,Last,City
John,Doe,San Francisco
Jane,Johnson,New York City


I'm a C/C++ person by nature but I thought this would be a good way to
get my hands in Perl and learn a bit.

Any guidance is helpful. Thanks.
 




 4 Posts in Topic:
CSV to ~XML (total newbie)
travis.bowers@[EMAIL PROT  2008-04-14 14:24:29 
Re: CSV to ~XML (total newbie)
noreply@[EMAIL PROTECTED]  2008-04-15 15:16:40 
Re: CSV to ~XML (total newbie)
Jenda@[EMAIL PROTECTED]   2008-04-16 01:18:47 
Re: CSV to ~XML (total newbie)
travis.bowers@[EMAIL PROT  2008-04-15 16:22:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 17:42:48 CST 2008.