469,320 Members | 2,200 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,320 developers. It's quick & easy.

Displaying Data from a Single xml file into Multiple HTML

Hi!!

I have a file call index.xml, Which I have created to store all my data.
But I want to display the data in to Multiple html file.

I want to use my xml file like a Database & the html like display page.

Like, The xml page containning two Data My Name & My Address
One html will display only the Name (not the Address)

& another html will display the Address (Not the Name)

Like that I want to display more data in to other html

But only from the same xml file.

Please give me some Solution

Thank You & Best Regards.
Jun 26 '07 #1
2 1530
Dököll
2,364 Expert 2GB
Hi!!

I have a file call index.xml, Which I have created to store all my data.
But I want to display the data in to Multiple html file.

I want to use my xml file like a Database & the html like display page.

Like, The xml page containning two Data My Name & My Address
One html will display only the Name (not the Address)

& another html will display the Address (Not the Name)

Like that I want to display more data in to other html

But only from the same xml file.

Please give me some Solution

Thank You & Best Regards.
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
Jun 27 '07 #2
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">&nbsp;</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">&nbsp;</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">&nbsp;</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
Jun 28 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Tomaz Koritnik | last post: by
9 posts views Thread by Eric Lindsay | last post: by
3 posts views Thread by CLEAR-RCIC | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.