SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Jul 2002
    Location
    USA
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    xml newbie: Linking to a particular child in your xml file to use in a html anchor.

    I mean I want to link to it.

    Here is how I want to use my xml:
    <slideshow>
    <client id="1">
    <image src="images/slide_webVedanta.png" desc="description goes here" header="Vedanta" role="Interface Developer"/>
    <image src="images/slide_ekong1.png" desc="description goes here" role="Designer, Developer"/>
    <image src="images/slide_Delphi1.png" desc="description goes here" header="Sam Ekong, Author" role="Designer, Developer"/>
    </client>
    <client id="2">
    <image src="images/slide_webVedanta.png" desc="description goes here" header="Vedanta" role="Interface Developer"/>
    <image src="images/slide_ekong1.png" desc="description goes here" role="Designer, Developer"/>
    <image src="images/slide_Delphi1.png" desc="description goes here" header="Sam Ekong, Author" role="Designer, Developer"/>
    </client>
    </slideshow>

    I want to link to the different children using the attribute within the link below, so that it loops through each clients images separately when the link is clicked.

    <a href="slideshow.swf?file=slideshow-data.xml" rel="type:swf" id="print1" class="print" title="D &amp; G Automotive Services"><img src="images/pf_sm_dng.png" alt="" border="0" class="mbImage" /></a>

    Would it be slideshow-data.xml, 2 or something like that?

    Thanks in advance for the help.

  2. #2
    SitePoint Addict
    Join Date
    Jul 2002
    Location
    USA
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can anyone help me with this or suggest another way?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •