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 the XML to contain data and that it will be easy to modify and update if necesary.

I tried using xmlhttprequest and it's not working without a server of course..

I thought using this XML pages as the main page and only use CSS to design it, but it seems to be even uglier than just using a normal HTML page.

Thanks, Rotem


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: <a href="http://think2loud.com/reading-xml-with-jquery/" rel="nofollow">http://think2loud.com/reading-xml-with-jquery/</a>

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.


The only browser I know of that allows you to do so was IE with <a href="http://msdn.microsoft.com/en-us/library/ms766512%28VS.85%29.aspx" rel="nofollow">XML Data Islands</a>, 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 <a href="http://ajaxpatterns.org/XML_Data_Island" rel="nofollow">this</a> wiki page.


  • How can I assert from Python C code?
  • How to write a sum function in F# using RProvider?
  • Powershell or Batch: find and replace characters
  • Different implementations in different files in autotools
  • How can I tell a form not to dispose a particular control when it closes?
  • Hash Code in SQL Server?
  • what makes a request a new request in asp.net C#
  • Can I programmatically choose the Android layout folder?
  • Ember.js model to be organised as a tree structure
  • Intel-64 and ia32 atomic operations acquire-release semantics and GCC 5+
  • Read text file that is not in the main package in a runnable jar
  • Adjust width of select element according to selected option's width
  • System.InvalidCastException: Specified cast is not valid
  • How to handle images sent by a mobile device?
  • Jackson Parser: ignore deserializing for type mismatch
  • OpenGL ES texture problem, 4 duplicate columns and horizontal lines (Android)
  • Read a local file using javascript
  • Recording logins for password protected directories
  • Pass value from viewmodel to script in zk
  • Apache 2.4 and php-fpm does not trigger apache http basic auth for php pages
  • recyclerView does not call the onBindViewHolder when scroll in the view
  • Controls, properties, events and timers running in design time
  • output of program is not same as passed argument
  • Modifying destination and filename of gulp-svg-sprite
  • htaccess rewriting URLs with multiple forward slashes
  • Arrow is showed instead of the material design version hamburger icon. Why doesn't syncState in
  • Display Images one by one with next and previous functionality
  • Web-crawler for facebook in python
  • How can I estimate amount of memory left with calling System.gc()?
  • Akka Routing: Reply's send to router ends up as dead letters
  • Matrix multiplication with MKL
  • A cron job substitute?
  • Benchmarking RAM performance - UWP and C#
  • CSS Applying specific rule for a specific monitor resolution with only CSS is posible?
  • Hits per day in Google Big Query
  • Change div Background jquery
  • File not found error Google Drive API
  • unknown Exception android
  • Checking variable from a different class in C#
  • Converting MP3 duration time