SunQuest
           XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 9th, 2003, 01:00 AM
adnan1983 adnan1983 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 14 adnan1983 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
embedded XML not working on Internet Explorer

I have been trying to work with XML, but when I try to embed it on to HTML. It does not show any output. But if I use netscape it shows the output. Can anyone please tell me what I can do to fix this?

[PHP
<html>
<body>

<xml>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</xml>


</body>
</html>[/PHP]

Reply With Quote
  #2  
Old June 10th, 2003, 05:22 AM
dan_2001 dan_2001 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Wellingborough, Northants, UK
Posts: 100 dan_2001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 2 m 2 sec
Reputation Power: 8
and also...

Hi,

there is another way to get xml into html:
Code:
<XML id=xmlHEAD src="heading.xml"></XML>

- refers to an external xml file. Declare between the HEAD tags.

then; say if you want to use the info in a table:

Code:
<table dataSrc=#xmlHEAD border="0">
<tr>
<td><span datafld="heading" class="heading"></span>
</td>
</tr>
</table>

the dataSrc refers to the id declared in the <xml> tag then it will find the datafld (heading tag used in the xml file) and put its contents into the html display. The contents of the xml file were:

Code:
<?xml version="1.0"?>
 
<content>
		 <heading>This is the header information</heading>
</content>



This will only work in IE though, you will have to do a browser detect for displaying it in other browsers...

good luck.

Dan

p.s.

as echolalia said, processing the xml document serverside and then using a script to put the info in a html formatted doc, say through a perl or php script would solve your browser compatibility problems
__________________
DELETE FROM pay WHERE employee_name ='Dan';

Last edited by dan_2001 : June 10th, 2003 at 05:25 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > embedded XML not working on Internet Explorer


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway