vc读写xml文件的问题
<item id="1">13.swf</item>
大家看这个格式
pNode = pIDOMNodeItemList->nextNode();
MSXML2::IXMLDOMNamedNodeMapPtr pAttrs = NULL;
pNode->get_attributes(&pAttrs); //获取子结点列表
MSXML2::IXMLDOMNodePtr pAttrItem;
pAttrs->get_item(0,&pAttrItem);
pAttrs->get_item(0,&pAttrItem);
这里的第一个参数,我只能设置成0,不是有两个属性吗,id和item
我设置成0,读出来的的是id的值,设置成1就会报错!
如果我要读item的值 我怎么写??????