Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

phadam

macrumors regular
Original poster
Jan 21, 2009
123
0
Please excuse my possibly ignorant question here but I wanted to put a slideshow into my site. I have the images all as jpg right now. How would I be able to get these jpg's into an xml file?? Is this something as simple as a save as .xml??? :confused:

Thanks
 
As XML is a text format, I'm not sure what you mean to get images into one? Perhaps you can explain your intentions further?
 
xml is just used to organize information; it does not in an of itself, actually do anything.
It's more or less akin to comma or tab delimited text.
Here's a basic example:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<SLIDESHOW>
  <IMAGE PATH="images/img0.jpg" CAPTION="description of image"/>
  <IMAGE PATH="images/img1.jpg" CAPTION="description of image"/>
  <IMAGE PATH="images/img2.jpg" CAPTION="description of image"/>
  <IMAGE PATH="images/img3.jpg" CAPTION="description of image"/>
  <IMAGE PATH="images/img4.jpg" CAPTION="description of image"/>
</SLIDESHOW>
 
As XML is a text format, I'm not sure what you mean to get images into one? Perhaps you can explain your intentions further?

i was actually looking to insert a slideshow on my home page so that every few seconds i get a new image. the site is being done in flash with as3 coding and i was doing some reading on tutorials for the slideshow code. the code tutorial sounds simple enough to understand however, i have never used anything with xml in it. i was just a little confused on where how to get my images into an xml file so i can keep next to my new images subfolder.

do i need to save my images for web and then open in a new xml file in dreamweaver to get this??

i hope some of this is making sense
 
xml is just used to organize information; it does not in an of itself, actually do anything.
It's more or less akin to comma or tab delimited text.
Here's a basic example:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<SLIDESHOW>
  <IMAGE PATH="images/img0.jpg" CAPTION="description of image"/>
  <IMAGE PATH="images/img1.jpg" CAPTION="description of image"/>
  <IMAGE PATH="images/img2.jpg" CAPTION="description of image"/>
  <IMAGE PATH="images/img3.jpg" CAPTION="description of image"/>
  <IMAGE PATH="images/img4.jpg" CAPTION="description of image"/>
</SLIDESHOW>


that sounds simple enough. just upload my jpg images to a folder and then continue the layout as above?
 
that sounds simple enough. just upload my jpg images to a folder and then continue the layout as above?

Well, you'll need to make sure you're using an XML layout that your slide show is expecting, otherwise it won't work.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.