Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Embedding xml as remote obects into static html

Reply
Thread Tools

Embedding xml as remote obects into static html

 
 
Kevin
Guest
Posts: n/a
 
      12-17-2003
Hi All,

Been reading post and thought this might be the right place to ask this.

I have some static html pages.
On hese pages there is an item that can and does change from day to day.
What i am looking to do is have a link to a remote server that has these
updates in an xml format.

eg
<html>
<head></head>
<body>
<table>
<tr>
<td>
Plain old text
</td>
<td>
<img src="http://www.aremoteserver.com/AABB.jpg" width="100" height="100"
border="0" alt="this is a picture that is updated regularly and my static
html need not change when it does">
</td>
<td>
<link to a text xml object on a remote server that may change also as above>
</td>
</tr>
</table>
</body>
</html>

Is there a simple method that anyone knows to pull what would be a text xml
item like <price>this is on remote server</price> off of a remote server?

Look forward to your responce with anticipation.

Kevin




 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      12-17-2003


Kevin wrote:

> I have some static html pages.
> On hese pages there is an item that can and does change from day to day.
> What i am looking to do is have a link to a remote server that has these
> updates in an xml format.
>
> eg
> <html>
> <head></head>
> <body>
> <table>
> <tr>
> <td>
> Plain old text
> </td>
> <td>
> <img src="http://www.aremoteserver.com/AABB.jpg" width="100" height="100"
> border="0" alt="this is a picture that is updated regularly and my static
> html need not change when it does">
> </td>
> <td>
> <link to a text xml object on a remote server that may change also as above>
> </td>
> </tr>
> </table>
> </body>
> </html>
>
> Is there a simple method that anyone knows to pull what would be a text xml
> item like <price>this is on remote server</price> off of a remote server?


Well, HTML has an <iframe> element to load another URL so you can
certainly do
<iframe src="whatever.xml">
<a href="whatever.xml">Some XML data</a>
</iframe>
The only problem is what you expect the browser to do with the XML. Is
the XML associated with a stylesheet? What type of stylesheet is that?
For instance Opera 7 supports styling XML with CSS but not with XSLT.

If you want to have a solution that works with all browsers then it is
probably best to use server side programming to fetch the XML, convert
it to HTML and insert that in your page.

--

Martin Honnen
http://JavaScript.FAQTs.com/

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedding an html application into a static html page jeff_j_dunlap@yahoo.com HTML 5 01-09-2008 04:49 PM
Embedding Gifs, animated gifs and other html pages into HTML winstontuck@gmail.com HTML 1 09-13-2006 11:11 AM
Remote Assistance fails to connect, remote remote host name could not be resolved Peter Sale Wireless Networking 1 12-11-2004 09:09 PM
embedding xml in xml as non-xml :) Mark Van Orman XML 5 09-15-2004 05:57 AM
Embedding xml as remote obects into static html Kevin HTML 1 12-17-2003 01:49 PM



Advertisments