TXMLDocument *XMLDocument1;
_di_IXMLNode xdeRoot;
_di_IXMLNode xdeChild;
xdeRoot = XMLDocument1->DocumentElement;
for (int i = 0; i < xdeRoot->ChildNodes->Count; i++) { xdeChild = xdeRoot->ChildNodes->Get(i); String text; VARIANT val; val = xdeChild->GetAttribute("name"); text = val.bstrVal; Node = TreeView1->Items->AddChild(NULL,text); LoadChildNode(Node,xdeChild); }