hi,
just wondering if anyone can help me on my simple problem.
1) I'm trying to do a simple html using xml. (press relase that reads from an xml file)
- here is how the xml file looks like.
<?xml version="1.0" ?>
<NEWS>
<ARTICLE>
<DATE>Febuary 9, 2001</DATE>
<PRESSRELEASE>Pg INC. ANNOUNCES MANAGEMENT RESTRUCTURING</PRESSRELEASE>
<URL> </ARTICLE>
</NEWS>
2) and I don't know how to use the < url> and put it into an href??
is this correct???
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<xml src="press.xml" id="xmldso" async="false">
<table width="750" border="0" cellspacing="0" cellpadding="0" datasrc="#xmldso">
<tr>
<td><span datafld="DATE"></span></td>
</tr>
<tr>
<td><a href="<span datafld="URL"></span>"><span datafld="PRESSRELASE"></span></a></td>
</tr>
</table>
</xml>
</body>
</html>
just wondering if anyone can help me on my simple problem.
1) I'm trying to do a simple html using xml. (press relase that reads from an xml file)
- here is how the xml file looks like.
<?xml version="1.0" ?>
<NEWS>
<ARTICLE>
<DATE>Febuary 9, 2001</DATE>
<PRESSRELEASE>Pg INC. ANNOUNCES MANAGEMENT RESTRUCTURING</PRESSRELEASE>
<URL> </ARTICLE>
</NEWS>
2) and I don't know how to use the < url> and put it into an href??
is this correct???
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<xml src="press.xml" id="xmldso" async="false">
<table width="750" border="0" cellspacing="0" cellpadding="0" datasrc="#xmldso">
<tr>
<td><span datafld="DATE"></span></td>
</tr>
<tr>
<td><a href="<span datafld="URL"></span>"><span datafld="PRESSRELASE"></span></a></td>
</tr>
</table>
</xml>
</body>
</html>