darmcqueen
asked on
creating xml output with perl
THIS IS THE XML STRUCTURE I NEED ( for use with ADOBE SPRY Framework)
<photos id = "images">
<photo
path = "travel_01.jpg"
width = "263"
height = "350"
thumbpath = "travel_01.jpg"
thumbwidth = "56"
thumbheight = "75">
</photo>
</photos>
I CAN MAKE XML FOR SINGLE PHOTO NAMES:
print header(-type=>'text/xml',- expires=>' +3d'),
start_html('XML test'),
'<image>',
(map$q->p("<imagename> $_</imagename>"), @image_list),
'</image>',
$q->end_html;
WHAT I NEED TO KNOW:
How to create the structure used by the SPRY framework using CGI.pm.
Thank you
<photos id = "images">
<photo
path = "travel_01.jpg"
width = "263"
height = "350"
thumbpath = "travel_01.jpg"
thumbwidth = "56"
thumbheight = "75">
</photo>
</photos>
<photos id = "images">
<photo
path = "travel_01.jpg"
width = "263"
height = "350"
thumbpath = "travel_01.jpg"
thumbwidth = "56"
thumbheight = "75">
</photo>
</photos>
I CAN MAKE XML FOR SINGLE PHOTO NAMES:
print header(-type=>'text/xml',-
start_html('XML test'),
'<image>',
(map$q->p("<imagename> $_</imagename>"), @image_list),
'</image>',
$q->end_html;
WHAT I NEED TO KNOW:
How to create the structure used by the SPRY framework using CGI.pm.
Thank you
<photos id = "images">
<photo
path = "travel_01.jpg"
width = "263"
height = "350"
thumbpath = "travel_01.jpg"
thumbwidth = "56"
thumbheight = "75">
</photo>
</photos>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you probably start with using XML::Simple