Monday, May 24, 2004 09:13 PM
Can someone please help me out here. I'm trying to input a value into an XML node. For example:
Here is my XML code
I need to constantly change the value inside
. I wrote the following code to change the string values.
Dim objRequestDOM As New MSXML2.DOMDocument40
Dim objReplyNode As MSXML2.IXMLDOMElement
Dim OperationVal As String
Dim Route As String
On Error GoTo ErrorHandler
If Not objRequestDOM Is Nothing Then
Set objRequestNode = objRequestDOM.selectSingleNode("//MsgBody/RoutingMe")
If Not (Operation = "") Then
objRequestNode.selectSingleNode("Operation").Text = OperationVal 'Is this how you write the value into the node?
If Not (Route = "") Then
objRequestNode.selectSingleNode("RouteDestination").Text = Route
Can someone please help me out? I need to finish this project soon. Thanks.
Re: Urgent: Need help inputting into XML nodes
Monday, May 24, 2004 11:53 PM
tags, chances for getting answers will increase ...