Embedding xml as remote obects into static html

K

Kevin

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
 
M

Martin Honnen

Kevin said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top