xml结构是这样的,应该如何读取
<?xml version="1.0" encoding="gb2312"?>
<Root>
<Item id="1" name="classc" invoke="manual"> 我如何读取id name invoke的信息
<Caption>test</Caption>
</Item>
</Root>
平常是这样读取的
var returnValue="";
var strValue=objectDoc.selectSingleNode("/Root/Item0/Caption");
if(strValue)returnValue=strValue.text;