a weird xml parser (MS DOM) problem# XML - WWW明日之星
b*g
1 楼
I use MS DOM to parse a XML file in VB.
The program is very simple:
Private Sub cmdLoad_Click()
Dim xml As DOMDocument
Set xml = New DOMDocument
xml.Load(App.Path & "\sample.xml")
Dim root As IXMLDOMElement
Set root = xml.documentElement
Dim node As IXMLDOMNode
For Each node In root.childNodes
Debug.Print node.Text
Debug.Print node.nodeName
Debug.Print Chr(13) + Chr(10)
Next
End Sub
I can not get any output in Debug window.
But when I set a
The program is very simple:
Private Sub cmdLoad_Click()
Dim xml As DOMDocument
Set xml = New DOMDocument
xml.Load(App.Path & "\sample.xml")
Dim root As IXMLDOMElement
Set root = xml.documentElement
Dim node As IXMLDOMNode
For Each node In root.childNodes
Debug.Print node.Text
Debug.Print node.nodeName
Debug.Print Chr(13) + Chr(10)
Next
End Sub
I can not get any output in Debug window.
But when I set a