Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert TXT to XML 1

Status
Not open for further replies.

Goppin

Technical User
Mar 29, 2012
11
0
0
GB
Hi, I heard that Perl is good for text manipulation, which should be useful for converting TXT file data to XML based files. I have text files which are somewhat structured, they contain data which I usually manually copy & paste into the image handling application Aperture (from Apple) to a specific picture.

The TXT file is structured like so:

"Title"
"URL"
"Comments"

Of which then the custom data follows like so, which you can see here for example.


I need to create a Perl script to export an XML file so that data looks like this .


Aperture uses IPTC metadata over XMP and so I figure I need to adhere to the following fields:


"Title" -> "photoshop:Headline"

"Comments" -> "dc:description"

"URL" -> "Iptc4xmpCore:SubjectCode"



So, I guess I'm asking for rudimentary help here, I cannot program in Perl but was told that a "simple" script would get me there, am I on the right track?


Thanks in advance!
 
My workflow has run into hundreds, but not thousands.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top