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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Goppin

    Convert TXT to XML

    My workflow has run into hundreds, but not thousands.
  2. Goppin

    Convert TXT to XML

    That's it Prex1, you nailed it. It works! Many thanks to you and the continued efforts of those here on the thread.
  3. Goppin

    Convert TXT to XML

    Affraid it only works on txt files with Comments in, not on the ones without. I tried removing the end "$" again but it only reproduced the issue of not looking at "URL" and "Comments". Thanks for trying.
  4. Goppin

    Convert TXT to XML

    Well, I thought I had it, I removed the "$" from the end of the following line: if ($content =~ /Title:\n(.*?)\s+URL:\n(.*?)(\s+Comment:\n(.*?)\s+)?/) { And the script processed all the files, but this time it only went as far as to convert the "Title" data only, nothing else. This...
  5. Goppin

    Convert TXT to XML

    I'm actually on OS X (10.6), the output is: Title:$ Nezinscot Farm | Sustainable Packaging Design$ $ URL:$ http://ambalaj.se/2011/11/16/nezinscot-farm/$ $ Comment:$ Lindsay Perkins [http://www.lindsayperkins.com/] ?M-^@M-^]To design a brand and package line that reflected the farm?M-^@M-^Ys...
  6. Goppin

    Convert TXT to XML

    when I ran the code it didn't work and produced the "Unexpected format" error. I'm typing: perl xmlconvert.pl 1333350837348_1.png.txt How did you get it to work?
  7. Goppin

    Convert TXT to XML

    Right, well, the script has been furthered since we last all spoke thanks much to the time and expertise of Phil Harvey (ExifTool: http://www.sno.phy.queensu.ca/~phil/exiftool/). So now the script will interrogate the files to spit out an XMP file with the data from the Text file in the right...
  8. Goppin

    Convert TXT to XML

    I found that loads of errors occurred, too many to list. The Terminal bit worked, but, for example I received many errors similar to this: Backslash found where operator expected at /Users/zzz/Desktop/Test/xmlconvert.sh line 1, near "ansi\" Backslash found where operator expected at...
  9. Goppin

    Convert TXT to XML

    This looks great, even though I don't really understand it. I've gone over it though and sort of get what's going on, I'll see what I can and get back to you. Thanks for your help!
  10. Goppin

    Convert TXT to XML

    Ahh, you're right, I got it mixed up with another file, sorry, so it would be like this: <?xpacket begin='' id=''?> <x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='XMP toolkit 2.9-9, framework 1.6'> <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'...
  11. Goppin

    Convert TXT to XML

    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...

Part and Inventory Search

Back
Top