TXMLDocument的问题~~,求救~!!
taoyi 2004-11-04 08:47:15
TXMLDocument *m_thXDoc;
String sXmlFile = "D:\\src\\debug\\Config.xml";
m_thXDoc = new TXMLDocument("");
m_thXDoc->LoadFromFile(sXmlFile);
m_thXDoc->Active = true;
_di_IXMLNode root = m_thXDoc->DocumentElement;
_di_IXMLNodeList list = root->GetChildNodes();
for (int i =0; i < list->Count; i++)
Memo1->Lines->Add(String(list->Get(i)->GetNodeName()));
以上代码的错误在哪里???当运行到“_di_IXMLNode root = m_thXDoc->DocumentElement;” 这里时就出错~~,求高人帮助~,谢谢~!