这里就是我有迄今:XML阅读优化.NET
Dim xpDoc As New XPathDocument(strXmlUrl & strXmlInfo(0) & "?xml=1")
Dim xpNav As XPathNavigator = xpDoc.CreateNavigator()
Dim xpExpression(9) As XPathExpression
Dim xpIter(9) As XPathNodeIterator
xpExpression(0) = xpNav.Compile("/profile/steamID64")
'etc.. up to 9
For i = 0 To 9
xpIter(i) = xpNav.[Select](xpExpression(i))
While xpIter(i).MoveNext()
If xpIter(i).Count <> 0 Then
strXmlInfo(i) = xpIter(i).Current.Value
Else
strXmlInfo(i) = ""
End If
End While
Next
这些都是我在解析XML文件: http://steamcommunity.com/id/brosephus?xml=1
处理这个任何会显著执行更好?
我会按照你的意见,并尝试和时间。应用程序执行几分之一秒的速度并不是那么重要......但是,我希望它能够...... – Radu 2010-07-09 10:02:21