Urgent: Need help inputting into XML nodes
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   raux_j
Posted On:   Monday, May 24, 2004 09:13 PM

Hello, 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 and . 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("Op   More>>

Hello,

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 and . 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?
End If
If Not (Route = "") Then
objRequestNode.selectSingleNode("RouteDestination").Text = Route
End If
End If

Can someone please help me out? I need to finish this project soon. Thanks.

- Raux

   <<Less

Re: Urgent: Need help inputting into XML nodes

Posted By:   Anonymous  
Posted On:   Monday, May 24, 2004 11:53 PM

... and if you format your code using
 tags, chances for getting answers will increase ...
About | Sitemap | Contact