in reply to Re: creating an xml file from perl
in thread creating an xml file from perl

greetings

i apologize if i have been unlear

what i do not know how to do is to have perl insert the path of the file into the xml document as an attribute ie

<imageURL="/images/image1.jpg" />

i have never laid eyes upon perl before today

Replies are listed 'Best First'.
Re^3: creating an xml file from perl
by jdporter (Paladin) on Apr 14, 2005 at 00:24 UTC
    You just stick the literal "/images/" in there. A-like so:
    print qq(<item id="$t" imageURL="/images/$filename" /> \n);
    And if you really meant to chop off the extension, you'd do
    print qq(<item id="$t" imageURL="/images/$nfile" /> \n);