Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Help with XML

    Hi guys!
    i'm really new to XML, and i'm trying to use a XML file as a database for news
    that i'll use in a site,
    but, i'm having troubles trying to put a link inside the XML file.

    here's my code

    ---------------------------------
    XML file
    ---------------------------------

    <?xml version="1.0" encoding="ISO-8859-1"?>

    <BANDNEWS>
    <BNEWS>
    <DATE>10/07/2004</DATE>
    <TEXT>
    HERE'S A SAMPLE TEXT 01
    </TEXT>
    </BNEWS>

    <BNEWS>
    <DATE>14/06/2004</DATE>
    <TEXT>
    HERE'S A SAMPLE TEXT 02
    </TEXT>
    </BNEWS>

    </BANDNEWS>

    ---------------------------------
    HTML+CSS FILE
    ---------------------------------
    <html>
    <body>

    <xml id="bandanews" src="bandnews2004.xml"></xml>

    <table>

    <tbody>
    <tr>
    <td width="8" bordercolor="#000000">
    <divalign="center">
    <img src="img/seta.jpg" width="4" height="7">
    </div>
    </td>
    <td colspan="2" bgcolor="#666666">
    <span datafld="DATE">
    </span>
    </td>
    </tr>
    <tr>
    <td colspan="2" bordercolor="#000000">&nbsp;</td>
    <td width="602" bordercolor="#000000">
    <span datafld="TEXT"></span>
    </td>
    </tr>
    </tbody>

    </table>

    </body>
    </html>

    -------------------------------------------
    -------------------------------------------
    I wanted to put a word as a link on the XML
    like, when you click at "SAMPLE TEXT 01"
    u'll go to another page in a new window
    (if possible) and on the same window.

    anyone can fix my code to do that. or
    post a new code for this purpose?
    thx a lot guys!

    DZero Guest

  2. #2

    Default Re: Help with XML

    ** to open in a new window OR on the same window..
    DZero Guest

  3. #3

    Default Re: Help with XML

    Use JavaScript. [url]www.w3schools.com[/url]

    The correct form is to use some XSL code, but if you don't know how
    to make XSL documents to format your XML and transform them in
    XHTML's, just use JavaScript, as in the W3Schools WebSite.

    []s

    --
    ~~ ~
    diego nunes
    web engineer
    ~ ~~


    Diego Nunes Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139