-
March 25th, 2004, 06:53 PM
#1
obtain xml values
I have looked at numerous posts about reading/writing xml, but I am still a bit lost.
For example, what I'd like to do is; obtain the individual values per element...the DB_Name value, table_Name1 value for Fee_Sim, etc...then the values for App_Sim, etc...
- <Root_Element>
- <Fee_Sim>
<DB_Name>fc_table_content</DB_Name>
<Table_Name1>ThisToClient</Table_Name1>
<Table_Name2>ThatToBank</Table_Name2>
<UserID>sa</UserID>
<PW>password</PW>
<Server>TestServer1</Server>
</Fee_Sim>
- <App_Sim>
<DB_Name>OSI_Batch</DB_Name>
<Table_Name>Table_Master</Table_Name>
<UserID>sa</UserID>
<PW>password</PW>
<Server>TestServer2</Server>
</App_Sim>
</Root_Element
-
April 5th, 2004, 03:22 PM
#2
Actually this is very simple...
Code:
Dim X As IXMLDOMNode
Set X = XMLobj.selectSingleNode("//App_Sim/DB_Name")
Msgbox X.Text
Result: OSI_Batch
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|