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

Basic XML/Scripting question

Hi,

I know quite nothing on XML scripting.

I need to create a small script to remplace the value of a node in an XML
file.

For ewample :

<MyNode>This is the data I need to change</MyNode>

And I need to make a script to get this :

<MyNode>NewData</MyNode>
I need to do on Microsoft Windows OS, with VBS.

Can you advise me ?

Thanks

FE
Nov 20 '05 #1
2 902
FE-FR wrote:
I need to do on Microsoft Windows OS, with VBS.


This is a newsgroup on Visual Basic .Net.
Try microsoft.public.scripting.vbscript instead.

--
Sven Groot

http://unforgiven.bloghorn.com
Nov 20 '05 #2
Han
Try

set x=createobject("msxml2.domdocument")
x.loadxml "<MyNode>This is the data I need to change</MyNode>"
msgbox x.xml
set node=x.selectsinglenode("//MyNode")
node.text="New Node"
msgbox x.xml

"FE-FR" <fe> wrote in message news:Oq*************@tk2msftngp13.phx.gbl...
Hi,

I know quite nothing on XML scripting.

I need to create a small script to remplace the value of a node in an XML
file.

For ewample :

<MyNode>This is the data I need to change</MyNode>

And I need to make a script to get this :

<MyNode>NewData</MyNode>
I need to do on Microsoft Windows OS, with VBS.

Can you advise me ?

Thanks

FE

Nov 20 '05 #3

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

Similar topics

2
by: Kelly | last post by:
Hi, Sorry for this dumb question. Is there a difference between VB language and VB scripting? I need to buy a beginners VB scripting book, I just don't want to pickup the wrong one. Thanks.
33
by: Quest Master | last post by:
I am interested in developing an application where the user has an ample amount of power to customize the application to their needs, and I feel this would best be accomplished if a scripting...
0
by: Jean Stax | last post by:
Hi! I just read in "Writing Secure Code" book a chapter about Cross-Site Scripting. Here the relevant paragraph: This is bad because a malicious user could access another's important data,...
6
by: Jim Flack | last post by:
I have a new website hosted by www.easily.co.uk which contains a mysql database (I have the initial access codes etc ). My problem is I have never used PHP or dealt with mysql before. I have tried...
1
by: James | last post by:
I am looking to add the domain name into the login url to access webmail via a link. Example: location.href = "https://" + "domain_name%5C" + LOGINNAME + ":" + password + "@test.test1.com" ...
7
by: MLH | last post by:
Is the following remotely correct? =DDE("C:\Program Files\Program Files\Outlook Express\OEmig50","Attachment","Name") I'm not sure that OEmig50.exe is the executable for OE. Anybody know? ...
7
by: deko | last post by:
Okay, so I got the common dialog working. but how to create object to copy selected files? Dim d As Object Dim fDialog As Office.FileDialog Set fDialog =...
1
by: RC | last post by:
Sorry I couldn't find appropriate group for SVG and ECMAScript. Since SVG is in XML format and ECMAScript is very similar to JavaScript. What's why I post in these two groups. In the O'Reilly...
43
by: Bill H | last post by:
25 years ago every computer came with some form of Basic interpreter so you could use yoru computer without having to buy more software. Is Javascript (teamed with HTML) set to become the new...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
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...
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: 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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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...

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.