Creating an XML File

Discussion in 'Web Design and Development' started by phadam, Jul 12, 2009.

  1. phadam macrumors regular

    Jan 21, 2009
    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:

  2. bootedbear macrumors 6502


    Sep 13, 2004
    Austin, TX
    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?
  3. snickelfritz macrumors 65816


    Oct 24, 2003
    Tucson AZ
    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:
    <?xml version="1.0" encoding="UTF-8"?>
      <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"/>
  4. Dal123 macrumors 6502a


    Oct 23, 2008
    What are you using to create your slideshow?
    I have used a google ajax feed
    I am trying to get rid of the 'pause on hover' however no joy yet. Looks simple enough, but I can't do it :eek:
    Let me know how you get on with yours.
  5. phadam thread starter macrumors regular

    Jan 21, 2009
    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
  6. phadam thread starter macrumors regular

    Jan 21, 2009

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


    Aug 16, 2005
    Well, you'll need to make sure you're using an XML layout that your slide show is expecting, otherwise it won't work.

Share This Page