Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help

Status
Not open for further replies.

jhslee

Programmer
Feb 19, 2001
3
CA
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=&quot;1.0&quot; ?>

<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=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>

<body bgcolor=&quot;#FFFFFF&quot;>
<xml src=&quot;press.xml&quot; id=&quot;xmldso&quot; async=&quot;false&quot;>
<table width=&quot;750&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; datasrc=&quot;#xmldso&quot;>
<tr>
<td><span datafld=&quot;DATE&quot;></span></td>
</tr>
<tr>
<td><a href=&quot;<span datafld=&quot;URL&quot;></span>&quot;><span datafld=&quot;PRESSRELASE&quot;></span></a></td>
</tr>
</table>
</xml>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top