Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
DZero #1
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"> </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
-
-
Diego Nunes #3
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



Reply With Quote

