473,480 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Create 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 1917


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
4241
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
2418
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
6410
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
2815
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
3493
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
11361
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
5041
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
7037
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
6904
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...
1
6732
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6886
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...
1
4768
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1294
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
174
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.