473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 1582
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

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

Similar topics

3
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
13
by: Aladdin | last post by:
I have an MS Access form on which I have a listbox listing tables in that database. I want to be able to click on any of those tables and view its contents on the same form using subforms or any...
5
by: Tomaz Koritnik | last post by:
Hi I have many short HTML files stored in a binary stream storage to display descriptions for various items in application. HTML would be display inside application using some .NET control or...
9
by: Eric Lindsay | last post by:
I can't figure how to best display little snippets of shell script using <pre>. I just got around to organising to bulk validate some of my web pages, and one of the problems occurs with Bash...
0
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the...
3
by: CLEAR-RCIC | last post by:
I have several images i want to display in an ASP.Net application. The images are being passed to me in binary format from another application. Is there a good way to write them directly to an...
3
by: CD | last post by:
An application is logging faxes sent in SQL2000 image column type. I have found code on the net but what it is doing is prompting to save to local which is fine for single page image. Not good...
1
by: feltra | last post by:
Hi, The following is from my friend who has only restricted net access from his office and hence cannot post.... ...
0
by: feltra | last post by:
Hi all, I am trying to export a GridView data to multiple file formats. The requirement is that when more than one file format is selected and the "Submit" button is clicked, the data from the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.