<?xml version="1.0"?>
<AppXmlLogWritter>
<LogData>
<LogID>5678201301161640382919</LogID>
<LogDateTime>20130114164038</LogDateTime>
</LogData>
<LogData>
<LogID>5678201301161640382920</LogID>
<LogDateTime>20130115154040</LogDateTime>
</LogData>
<LogData>
<LogID>5678201301161640382921</LogID>
<LogDateTime>20130116164042</LogDateTime>
</LogData>
</AppXmlLogWritter>
strXpathQuery = @"/AppXmlLogWritter/LogData[LogDateTime/text()>=[starts-with(. , '20130115') and LogDateTime/text()<=starts-with(. , '20130116')]";
我必须编写 xpath 查询来选择 LogDateTime 以 20130115 到 20130117 开头的范围内的日志数据 我正在尝试上述查询但无法获取数据