danielhordern.com

playing with xml as the container for data-transfer between client and server (within an application)

options to communicate the (xml formatted) data from server to client (assuming IIS/asp/microsoft.xml parser at server, and dhtml/jscript/ie5+ at client)

server to client

  1. server to insert the xml (via xslt or script) as html - works for all clients
  2. provide the xml data via an asp page - the client (ie5+) can then via script, retrieve the generated xml data from the asp page dynamically, and do whatever with it.
  3. embed xml data-islands in the server (asp) generated html page

client to server ( a far more interesting question )

  1. post information from a form (not useful - means we move to another page)
  2. post information from a form in a hidden frame ( great party trick..... )
  3. use microsoft xmlhttp control to send entire xml dom to server
1 Created xmldoc object
2 Loading xml document succeeded
3 parsing xml doc... succeeded