XML Data Islands

Discussion in 'HTML & Website Design' started by blacknightx, Jan 25, 2007.

  1. #1
    Ok... I have an xml document... http://www.di.fm/partners/xml/playlists.xml

    im am trying to use a xml data island, embedded in an html document, to parse some of the data ... specifically the TRACKTITLE field.

    here is the code i am using to do this:


    
    <html> 
     <body> 
      <xmlid="cdcat" src="http://www.di.fm/partners/xml/playlists.xml"></ xml>   
        <table border="1" datasrc="#cdcat"> 
         <tr> 
           <td><div datafld="TRACKTITLE"></div>
           </td>
         </tr>
        </table>
     </body> 
    </html> 
    
    Code (markup):
    Its not working though. Ive tried this test on very simple xml documents and it works. for some reason its not working on this xml doc. Im thinking maybe its because the TRACKTITLE field is nested so far down the tree. but ive tried using other fields too and nothing works.

    I have to do this in HTML. Javascript, PHP, ASP, and any other scripting languages are not allowed on the site.

    Anyone know how to fix this?

    Thanks in advance!
     
    blacknightx, Jan 25, 2007 IP
  2. ancer

    ancer Well-Known Member

    Messages:
    302
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    128
    #2
    Hi, I'm still fresh at XML but maybe this will work?

    <table border="1" datasrc="#cdcat">
    <tr>
    <td><span datafld="TRACKTITLE"></span></td>
    </tr>
    </table>

    Span instead of div
     
    ancer, Jan 25, 2007 IP
  3. blacknightx

    blacknightx Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks for the reply... didnt work though :(
     
    blacknightx, Jan 27, 2007 IP