vb 读取xml文件

前端之家收集整理的这篇文章主要介绍了vb 读取xml文件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
 

vb源码
    Dim strPage As String   '接收页面
    Dim xDoc As Object
    Dim xmlFile As String

   Set xDoc = CreateObject("MSXML2.DOMDocument")
   xmlFile = App.Path & "\version.xml"
   xDoc.Load xmlFile
 
   strPage = xDoc.selectSingleNode("versions").selectSingleNode("accept").Attributes(0).Text

version.xml
 
<?xml version="1.0" encoding="utf-8" ?> 
 <versions>
 <accept version1="/HRRY/Data/netaccept.aspx method=post" version2="/agent/upload.do?method=upload"  /> 
 <get version1="/HRRY/Data/Netresult.aspx " version2="/agent/upload.do?method=upload" />
  </versions>
原文链接:https://www.f2er.com/vb/260665.html

猜你在找的VB相关文章