我有以下 XML 被返回给我:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<document xmlns="@link" xmlns:xsi="@link" xsi:schemaLocation="@link" version="1.0">
<field left="0" top="0" right="100" bottom="20" type="text">
<value encoding="utf-16">11266</value>
<line left="8" top="4" right="55" bottom="17">
<char left="8" top="4" right="13" bottom="16" confidence="65" suspicious="true">1</char>
<char left="18" top="4" right="23" bottom="16" confidence="68" suspicious="true">1</char>
<char left="27" top="4" right="35" bottom="16" confidence="100">2</char><char left="36" top="4" right="45" bottom="17" confidence="100">6</char>
<char left="46" top="4" right="55" bottom="16" confidence="100">6</char>
</line>
</field>
</document>
我正在尝试读取value
节点。我的代码如下所示:
Dim m_xmld = New XmlDocument()
m_xmld.Load(xmlfile)
Return m_xmld.SelectSingleNode("/field/value").InnerText
我究竟做错了什么?我也试过/document/field/value
无济于事:(