Jump to content
xisto Community
Sign in to follow this  
suicide1405241470

Embedding XML into HTML

Recommended Posts

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 :)

hopefully, you can use php and other server side script to read or grab rss/xml news feeds and it is browser independent :)

Share this post


Link to post
Share on other sites

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://forums.xisto.com/no_longer_exists/
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

Share this post


Link to post
Share on other sites
xml fileEmbedding XML into HTML

I am a designer.I have an xml file .How to attech the the xml file to html file .I have xml slide show.How to do it?

-reply by satish

Share this post


Link to post
Share on other sites

Well it's been a few years now, but currently I would say that using jQuery or another JavaScript framework (MooTools or something like that) would be the best way to do this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.