Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Embedding XML into HTML
suicide
post Sep 7 2004, 03:10 PM
Post #1


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 55
Joined: 7-September 04
Member No.: 351



Hi, I am looking for a way to embed external rss/xml files into my html page, how/is this possible?
Go to the top of the page
 
+Quote Post
r3d
post Sep 8 2004, 06:51 PM
Post #2


death
Group Icon

Group: Members
Posts: 268
Joined: 8-September 04
Member No.: 384



yes
w/ pure html no server side script
here is a sample zip file HERE
the zip contains .html .xml .xsl
the html reads the xml and use the style from xsl

i use this script on my old site the downside is it can only be viewed w/ internet explorer sad.gif

hopefully, you can use php and other server side script to read or grab rss/xml news feeds and it is browser independent biggrin.gif
Go to the top of the page
 
+Quote Post
FirefoxRocks
post Mar 5 2008, 02:26 PM
Post #3


Super Member
Group Icon

Group: [HOSTED]
Posts: 589
Joined: 12-July 06
From: Ontario, Canada
Member No.: 14,464



QUOTE(suicide @ Sep 7 2004, 09:10 AM) *
Hi, I am looking for a way to embed external rss/xml files into my html page, how/is this possible?

Yes, this is through JavaScript and the XmlHttpRequest object (I think that's what it is called). If you need to do it through a server-side scripting technology such as PHP or ASP, it is technically called AJAX (asynchronized javascript and XML). But as for client-side scripting, you can do it all through JavaScript.

Here is a real live example: http://dhseagles.kpdsb.on.ca/boysHockey2007/roster.php
The JavaScript is right on the page, it isn't in an external file. As you can see, it loads an XML file into the browser and grabs the text nodes of specific elements into variables, which I can pass onto the correct <div> or <td> or whatever.

Hope this helps
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Basic Tips and Tricks in HTML(15)
  2. Rapid HTML code generation using simple PHP(8)
  3. HTML 101 - Web Design For Beginners(7)
  4. Force Object To Load Last(2)
  5. Web Browsing With Vim(2)
  6. Creating Tooltips(7)
  7. Free Shoutbox? HTML, Flash or PHP Code(24)
  8. Need Help On HTML Matrix(6)
  9. HTM vs HTML: Whats The Difference ?(22)
  10. Embedding PSD Files Into Dreamweaver(6)
  11. HTML Tags(4)
  12. Tutorial: Dreamweaver, 3ds Max, Flash, Html, Css(8)
  13. 4 Html Based Website Tips(4)
  14. Html Basic Tutorial(8)
  15. Html Stats(3)
  1. About Html(15)
  2. Video Player(0)
  3. Html Table Issue.(18)
  4. Html Emails How?(12)
  5. Nvu(2)
  6. Embedding Flash Or Java Into A C++ App...(3)
  7. Html Table Rows Problem [solved](1)
  8. Sitepoint's Css And Html Reference Sites(2)
  9. W3 Schools(1)
  10. Increase Your Knowledge Of Html Language(7)
  11. Javascript Tutorial For Beginner(0)
  12. Yaml - (x)html/css Framework(2)
  13. Style P And H? Html Tags(1)


 



- Lo-Fi Version Time is now: 6th July 2008 - 06:38 AM