473,324 Members | 2,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

XMLHttpRequest + XMLDOM

Is possible to:
a) save XMLHttpRequest object* (precisly: server response** which is in the
form of xml) to the xml document(on the client side) by the help of
JavaScript
or
b) directly load object*(his response**) into XMLDOM object(JacaScript or
VBScript).

thank you.
Nov 12 '05 #1
2 1908


Trip wrote:
Is possible to:
a) save XMLHttpRequest object* (precisly: server response** which is in the
form of xml) to the xml document(on the client side) by the help of
JavaScript
or
b) directly load object*(his response**) into XMLDOM object(JacaScript or
VBScript).


If the server sends the response to the HTTP request with the proper
Content-Type (e.g. application/xml or text/xml) then the response is
parsed automatically and if it is well formed the responseXML is
populated so you have an XML DOM object in
xmlHttpRequestInstance.responseXML
then.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Nov 12 '05 #2
(kind of weird to be talking about XMLHTTP in the dotnet forum, but....)

As an aside, if the XMLHTTP object is running in the context of a browser
(like in a scripting scenario) and the XML resource is retrieved from the
Internet zone, calling Save() on the DomDocument held by responseXML will
fail.

Alex

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...


Trip wrote:
Is possible to:
a) save XMLHttpRequest object* (precisly: server response** which is in
the
form of xml) to the xml document(on the client side) by the help of
JavaScript
or
b) directly load object*(his response**) into XMLDOM object(JacaScript or
VBScript).


If the server sends the response to the HTTP request with the proper
Content-Type (e.g. application/xml or text/xml) then the response is
parsed automatically and if it is well formed the responseXML is populated
so you have an XML DOM object in
xmlHttpRequestInstance.responseXML
then.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Robert Zurer | last post by:
Hello all, I want to load an in-memory XmlDocument from the server to the client and create an XMLDOM object using javascript. I can do it from a url by calling this Javascript from the...
2
by: Slipperman | last post by:
i'm a relative newbie to javascript and the more advanced techniques of Web dev't so bear with me. what i'd like to accomplish is twofold.. 1. in client-side JS in an aspx file, i'd like to POST...
8
by: jason.lucey | last post by:
Hi, I need some help figuring this out. I cannot get the xmlhttprequest object to return responseXML or getAllResponseHeaders. responseText works fine, but i'd rather use xPath than regular...
0
by: Trip | last post by:
Is possible to: a) save XMLHttpRequest object* (precisly: server response** which is in the form of xml) to the xml document(on the client side) by the help of JavaScript or b) directly load...
2
by: nick.taylor | last post by:
Hi, I've been trying for weeks to figure out this problem. I'm developing a simple Javascript app that loads an XML file from a server, parses the contents, and displays them. But I am...
17
by: broughcut | last post by:
Is it possible to fetch a specific div from a source html document using XMLHttpRequest, rather than fetching the entire file? I was going to use Ajax on mouseover but keep the normal link...
10
by: HugeBob | last post by:
Hi All, I'm having a problem with a web app I'm writing. I have a form for which I'm going to validate one of the fields. I use AJAX to retrieve XML containing a list of valid entries. My app...
1
by: Tarik Monem | last post by:
OK, I'm pretty sure this cannot work because I'm trying to use JavaScript (client-side) to write to an xml file (which is server-side) using XMLHttpRequest. Can I use PHP do what I'm trying to do?...
2
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I have the following code which I try to load an xml file, but in browser, I only get text value for each node, not whole xml string. I expect to see something like <name...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.