URGENT: I need to know how to input into XML nodes. Can someone please help me?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   raux_j
Posted On:   Tuesday, May 25, 2004 06:44 AM

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 Code:XML Code I need to constantly change the value inside and . I wrote the following code to change the string values. Code: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    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


Code:XML Code


			












I need to constantly change the value inside and . I wrote the following code to change the string values.


			

Code: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: I need to know how to input into XML nodes. Can someone please help me?

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, May 25, 2004 07:31 AM

but that is Visual Basic, not Java
About | Sitemap | Contact