XMLDocument1->LoadFromFile("aaa.xml"); XMLDocument1->Active = true; Caption = XMLDocument1->DocumentElement->ChildNodes->FindNode("Info")->ChildNodes->FindNode("Name")->Text; _di_IXMLNode node = XMLDocument1->DocumentElement->ChildNodes->Nodes[0]->ChildNodes->Nodes[0];
最简单的读取xml例子,拖一个控件XMLDocument
<Data> <Info> <Name> jonese </Name> </Info> </Data>
详细的看专家的点击打开链接
http://blog.csdn.net/goodai007/article/details/7284149
原文链接:https://www.f2er.com/xml/298626.html