Hello, sanghita!
I hope the below link will help you get started:
http://www.thescripts.com/forum/thread662186.html
Good luck and welcome!
Dököll
__________________________________________________ _
Hi Dököll
Thanks for your nice reply.
I hv studied the page provided by You.
Actually I m a new learner in xml...So I think I cant solve my :-)
I m not able to find anything about HTML.
I am giving You the code of my two files..html & xml both
The data is in the xml file & I want display in in html to the user.
In my xml onlyquestion.xml ...I have done like that (onlyquestion.xml )
================================================== ==
<?xml version="1.0" encoding="ISO-8859-1" ?>
<CATALOG>
<CD>
<question>Displaying Data Name </question>
</CD>
<CD>
<question>Displaying Data Address </question>
</CD>
<CD>
<question>Displaying Data Phone </question>
</CD>
<CD>
<question>Displaying Data Country </question>
</CD>
<CD>
<question>Displaying Data State </question>
</CD>
<CD>
<question>Displaying Data State</question>
</CD>
</CATALOG>
=======================================
& the html is (question.html)
===============================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.text1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #FF0000;
text-decoration: none;
}
.text1:link {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #FF0000;
}
.text1:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #CA0000;
text-decoration: underline;
}
.text2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: normal;
color: #666666;
text-decoration: none;
}
.combo {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: normal;
color: #FF0000;
text-decoration: none;
border: 1px solid #CCCCCC;
}
-->
</style>
</head>
<body>
<table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="9" height="8"><img src="images/1.gif" width="9" height="8"></td>
<td height="8" colspan="3" background="images/2.gif"></td>
<td width="10" height="8"><img src="images/3.gif" width="9" height="8"></td>
</tr>
<tr>
<td background="images/9.gif"> </td>
<td colspan="3">
<xml id="cdcat" src="onlyquestion.xml"></xml>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"datasrc="#cdcat">
<tr>
<td colspan="4"> </td>
</tr>
<tr>
<td width="5" height="20" bgcolor="#E4E4E4" class="text1"> </td>
<td width="81" valign="top" bgcolor="#efefef" class="text1">Question
:</td>
<td width="605" height="26" bgcolor="#efefef" class="text2"><div align="justify"><b><span datafld="Question"></span></b></div></td>
<td width="5" height="26" bgcolor="#efefef" class="text2"><div align="left"></div></td>
</tr>
</table></td>
<td background="images/4.gif"> </td>
</tr>
<tr>
<td><img src="images/7.gif" width="9" height="10"></td>
<td height="10" colspan="3" background="images/6.gif"></td>
<td width="10" height="10"><img src="images/5.gif" width="9" height="10"></td>
</tr>
</table>
</body>
</html>
================================================== ====
So can please help me how can I display the data in another html file call
question2.html from the same xml file.
I value all help...
Thank you
Best Regards
Sanghita