, 14 2018 . 21:36
+
!
XML. , :
managedObject class="IPNB" managedObject class="WBTS", .
.
, .
XML, . , .
. ? . , .
Dim xmlDoc As Object
Dim xmlNode As MSXML2.IXMLDOMNode
Dim xmlNodeList As MSXML2.IXMLDOMNodeList
Dim xml_path As String
Dim i As Integer
Dim SourceFile$
'
Set xmlDoc = CreateObject("MSXML2.DOMDocument")
xmlDoc.async = False '
'
SourceFile = "C:\temp\IPNB.XML"
If Not xmlDoc.Load(SourceFile) Then Exit Sub ' <========
'
xml_path = "/raml/cmData/managedObject[@class='IPNB']"
'
Set xmlNodeList = xmlDoc.DocumentElement.SelectNodes(xml_path)
i = 1
For Each xmlNode In xmlNodeList
MsgBox i
MsgBox xmlNode.NodeValue
i = i + 1
' ()
Next
http://www.sql.ru/forum/1300968/import-iz-xml