我有以下 XML:
<?xml version="1.0" encoding="utf-8" ?>
<configuracoes>
<gerais>
<atualizacoes>
<tipo>automática</tipo>
<frequencia>diária</frequencia>
</atualizacoes>
</gerais>
</configuracoes>
和代码:
Dim xPathNavigator As XPathNavigator
Dim xPathNodeIterator As XPathNodeIterator
xPathNavigator = Me.XML.CreateNavigator()
xPathNodeIterator = xPathNavigator.Select("/configuracoes/gerais/atualizacoes")
While (xPathNodeIterator.MoveNext())
Dim xPathNavigatorInterno As XPathNavigator = xPathNodeIterator.Current
MsgBox(xPathNavigatorInterno.Value) 'It Shows "automáticadiária" instead of "automática" and then "diária" in the next iteration...
End While
我想进入第一次迭代“automática”,然后进入最后一个“diária”。怎么了?我怎么能解决这个问题?谢谢你。