Creating an XML File

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

  1. phadam macrumors regular

    Joined:
    Jan 21, 2009
    #1
    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
     
  2. bootedbear macrumors 6502

    bootedbear

    Joined:
    Sep 13, 2004
    Location:
    Austin, TX
    #2
    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

    snickelfritz

    Joined:
    Oct 24, 2003
    Location:
    Tucson AZ
    #3
    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>
    
     
  4. Dal123 macrumors 6502a

    Dal123

    Joined:
    Oct 23, 2008
    Location:
    England
    #4
    What are you using to create your slideshow?
    I have used a google ajax feed http://code.google.com/apis/ajaxfeeds/
    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

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

    Joined:
    Jan 21, 2009
    #6

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

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #7
    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