Skip to content Skip to sidebar Skip to footer

Using Xml In Html Page Without Using A Server

Is it possible to use XML in HTML pages and retrieve the information using javascript from the XML files? I'm asking it because I don't have a server and I'm using an HTA. I want t

Solution 1:

Javascript is run entirely via your web browser, so there is no need for a server side technology (such as php, Coldfusion, .NET, etc).

If you store a copy of jquery locally, and load it, you can do some pretty fancy XML manipulation: http://think2loud.com/reading-xml-with-jquery/

It sounds like you might be wanting to do an XSLT Transform (http://en.wikipedia.org/wiki/Xslt). This can also be done within a web browser without any server to run upon.

Solution 2:

The only browser I know of that allows you to do so was IE with XML Data Islands, this was with IE 5 and worked with IE 6, though I don't know if later versions have this feature.

However, you can emulate these with the DOM - see this wiki page.

Post a Comment for "Using Xml In Html Page Without Using A Server"