473,508 Members | 2,346 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

using xml as html

kal
Hi.

I have some xhtml in a file called test.xml.
I created a div on my page then in the page load event i load test.xml into
a smldoc and then
div.innerhtml=doc.innerxml

this seems to work - for all the text bit - but wont seem to get the <img>
that i have in the xml file.

is there some other way i shoud be doing this?

Thanks

Kal
Jul 15 '07 #1
3 1119
On Jul 15, 6:50 pm, "kal" <a...@noplace.comwrote:
Hi.

I have some xhtml in a file called test.xml.
I created a div on my page then in the page load event i load test.xml into
a smldoc and then
div.innerhtml=doc.innerxml

this seems to work - for all the text bit - but wont seem to get the <img>
that i have in the xml file.

is there some other way i shoud be doing this?

Thanks

Kal
hi,
i'm try this way and get things working

<body>
<form id="form1" runat="server">
<div runat="server" id="xmldiv">
</div>
</form>
</body>

protected void Page_Load(object sender, EventArgs e)
{
xmldiv.InnerHtml="<img src=\"0.jpg\" />";
}

can you please show how you images are pointed in xml

nahid
http://nahidulkibria.blogspot.com/
http://www.kaz.com.bd

Jul 15 '07 #2
kal
Thanks - I resolved this - sorry - it was a path problem - i had to change
the path to the image so that it was relative to the aspx page and not the
xml file.

thanks
"nahid" <na******@gmail.comwrote in message
news:11**********************@i38g2000prf.googlegr oups.com...
On Jul 15, 6:50 pm, "kal" <a...@noplace.comwrote:
>Hi.

I have some xhtml in a file called test.xml.
I created a div on my page then in the page load event i load test.xml
into
a smldoc and then
div.innerhtml=doc.innerxml

this seems to work - for all the text bit - but wont seem to get the
<img>
that i have in the xml file.

is there some other way i shoud be doing this?

Thanks

Kal

hi,
i'm try this way and get things working

<body>
<form id="form1" runat="server">
<div runat="server" id="xmldiv">
</div>
</form>
</body>

protected void Page_Load(object sender, EventArgs e)
{
xmldiv.InnerHtml="<img src=\"0.jpg\" />";
}

can you please show how you images are pointed in xml

nahid
http://nahidulkibria.blogspot.com/
http://www.kaz.com.bd

Jul 15 '07 #3
On Jul 15, 6:50 pm, "kal" <a...@noplace.comwrote:
Hi.

I have some xhtml in a file called test.xml.
I created a div on my page then in the page load event i load test.xml into
a smldoc and then
div.innerhtml=doc.innerxml

this seems to work - for all the text bit - but wont seem to get the <img>
that i have in the xml file.

is there some other way i shoud be doing this?

Thanks

Kal
......................opps i was mistake...i was remove the original
post...
hi,
i'm try this way and get things working
<body>
<form id="form1" runat="server">
<div runat="server" id="xmldiv">
</div>
</form>
</body>
protected void Page_Load(object sender, EventArgs e)
{
xmldiv.InnerHtml="<img src=\"0.jpg\" />";
}
can you please show how you images are pointed in xml
nahid
http://nahidulkibria.blogspot.com/
http://www.kaz.com.bd
Jul 15 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
5552
by: fochie | last post by:
Greetings, I'm having a problem when I try to GET a file from my server via xmlhttp when using Mozilla. With IE I can get any type of file fine, get/display headers fine, etc. With Mozilla,...
21
2859
by: BT | last post by:
I inherited a simple page that needs to be Strict HTML and I'm not very familiar with this standard. What I'm trying to do _should be_ pretty simple so I hope someone can point me in the right...
15
17852
by: could ildg | last post by:
In re, the punctuation "^" can exclude a single character, but I want to exclude a whole word now. for example I have a string "hi, how are you. hello", I want to extract all the part before the...
3
2416
by: vanisathish | last post by:
Hi I am running a client side javascript timer to periodically refresh the contents of some tables in the HTML page. The table values are dynmically binded from XML DOM object using the <XML tag...
1
1630
by: Stephen Adam | last post by:
Hi there, I've just started a c# project at work where I cannot use Visual Studio. I am trying to pass variables from one form to another. When I try to create an instance of the sending class...
5
3143
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
15
4713
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
19
248012
Atli
by: Atli | last post by:
Introduction At some point, all web developers will need to collect data from their users. In a dynamic web page, everything revolves around the users input, so knowing how to ask for and collect...
21
34327
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7324
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
7495
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1556
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.