Embedding xml as remote obects into static html

Discussion in 'XML' started by Kevin, Dec 17, 2003.

  1. Kevin

    Kevin Guest

    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
    Kevin, Dec 17, 2003
    #1
    1. Advertising

  2. 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/
    Martin Honnen, Dec 17, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin
    Replies:
    1
    Views:
    495
    Martin Honnen
    Dec 17, 2003
  2. Vital Lobachevsky

    Embedding xlst element into html tag

    Vital Lobachevsky, May 8, 2004, in forum: XML
    Replies:
    1
    Views:
    427
    Patrick TJ McPhee
    May 8, 2004
  3. Mark Van Orman

    embedding xml in xml as non-xml :)

    Mark Van Orman, Sep 14, 2004, in forum: XML
    Replies:
    5
    Views:
    472
    Patrick TJ McPhee
    Sep 15, 2004
  4. Replies:
    1
    Views:
    581
    Travis Newbury
    Sep 13, 2006
  5. Replies:
    5
    Views:
    542
Loading...

Share This Page