473,396 Members | 1,982 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,396 software developers and data experts.

moving XML data from client to server vice versa

.... The second time I am sending this email ...
.... I want a good solution, please.
.... Thanks :)

What I need is moving xml data from client to server & vice versa, but not
using xml file.
I did something like this :

In server (VBScript) :
-----------------------------
dim xml_list
dim newnode
xml_list = Server.CreateObject("Microsoft.XMLDOM")
newnode = xml_list.createElement("mylist")
xml_list.documentElement = newnode

itemnode = xml_list.createElement("line")
newnode = xml_list.createElement("element_id")
textnode = "This is a text"
newnode.appendChild(textnode)
itemnode.appendchild(newnode)

In client (JavaScript) :

-----------------------------
xml_list = new ActiveXObject("Microsoft.XMLDOM");
root_node = new ActiveXObject("Microsoft.XMLDOM");
xml_list.async = false;
root_node = xml_list.documentElement;
alert(root_node.xml)

....
since the xml is not saved on a file,
I don't know how to get the xml from the client,
so I need some changes in my code, so the last line : alert(root_node.xml)
work as
desired (return the xml).

How can I do that ?

Thanks :)


Nov 11 '05 #1
1 1955
You can use XMLHTTP object for this purpose. Here is an example
http://support.microsoft.com/default...b;en-us;290591

"Mr. x" <a@b.com> wrote in message
news:eE**************@TK2MSFTNGP12.phx.gbl...
... The second time I am sending this email ...
... I want a good solution, please.
... Thanks :)

What I need is moving xml data from client to server & vice versa, but not
using xml file.
I did something like this :

In server (VBScript) :
-----------------------------
dim xml_list
dim newnode
xml_list = Server.CreateObject("Microsoft.XMLDOM")
newnode = xml_list.createElement("mylist")
xml_list.documentElement = newnode

itemnode = xml_list.createElement("line")
newnode = xml_list.createElement("element_id")
textnode = "This is a text"
newnode.appendChild(textnode)
itemnode.appendchild(newnode)

In client (JavaScript) :

-----------------------------
xml_list = new ActiveXObject("Microsoft.XMLDOM");
root_node = new ActiveXObject("Microsoft.XMLDOM");
xml_list.async = false;
root_node = xml_list.documentElement;
alert(root_node.xml)

...
since the xml is not saved on a file,
I don't know how to get the xml from the client,
so I need some changes in my code, so the last line : alert(root_node.xml)
work as
desired (return the xml).

How can I do that ?

Thanks :)

Nov 11 '05 #2

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

Similar topics

6
by: Astra | last post by:
Hi All I've noticed on quite a few ASP sites that when they have a 'MyAccount' section they transfer the site to https and then when you have logged into your account successfully and gone back...
9
by: Tony Lee | last post by:
Some time a ago, on this newsgroup the following comments were made in recommending good references for Access (2003) >I used to recommend Dr. Rick Dobson's, "Programming Access <version>" for...
5
by: Kay | last post by:
Hello, I have two list boxes on my form, one initially displays with items and the other displays blank, by clicking a button, it is possible to move items from one box to another and vice a...
3
by: rodchar | last post by:
hey all, i'm having trouble understanding the connection (if there is one beween) client-side scripting and server side scripting. For example can a variable that is defined in the code-behind...
4
by: Khalique | last post by:
I have built a web service whose purpose is to copy files from a secure place to client machine and vice versa. The problem I am having is perhaps related to permissions and access rights. For...
34
by: Jeff | last post by:
For years I have been using VBA extensively for updating data to tables after processing. By this I mean if I had to do some intensive processing that resulted in data in temp tables, I would have...
0
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the...
1
by: 14anand | last post by:
Hi all I am able to establish a connection between a server and a client.I am trying to transfer a file from the server to client and vice-versa. I am not able to transfer the file by using...
0
by: User | last post by:
Hi everyone, Right now, one of our client have an in-house system which stores customer profiles / data. We are building an external web based system for them which also houses the same...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.