473,503 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1920


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
4247
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
2421
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
6413
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
332
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
2819
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
3495
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
11362
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
5285
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
5042
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
7204
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4680
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
391
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.