A
ansili
Unregistered / Unconfirmed
GUEST, unregistred user!
解析XML的时候:可执行到ListBox1->Items->Add(Child_Node->Text);这句就报:Elementdo
es not contain a single text node 错误,请问是怎么回事啊?急! ( 积分: 50 )<br />解析XML的时候:
可执行到ListBox1->Items->Add(Child_Node->Text);这句就报:Elementdo
es not contain a single text node 错误,请问是怎么回事啊?
_di_IXMLNode Root, PNode, CNode;
//指向XML根结点
_di_IXMLNodeList ChildNodes;
AnsiString s;
xmlDoc->Active = true;
Root=Form1->xmlDoc->DocumentElement;
PNode=Root->ChildNodes->First();
while(PNode!=NULL)
{
CNode=PNode->ChildNodes->First();
while(CNode!=NULL)
{
ListBox1->Items->Add(CNode->Text);
CNode=CNode->NextSibling();
}
PNode=PNode->NextSibling();
}
QQ:69786714
es not contain a single text node 错误,请问是怎么回事啊?急! ( 积分: 50 )<br />解析XML的时候:
可执行到ListBox1->Items->Add(Child_Node->Text);这句就报:Elementdo
es not contain a single text node 错误,请问是怎么回事啊?
_di_IXMLNode Root, PNode, CNode;
//指向XML根结点
_di_IXMLNodeList ChildNodes;
AnsiString s;
xmlDoc->Active = true;
Root=Form1->xmlDoc->DocumentElement;
PNode=Root->ChildNodes->First();
while(PNode!=NULL)
{
CNode=PNode->ChildNodes->First();
while(CNode!=NULL)
{
ListBox1->Items->Add(CNode->Text);
CNode=CNode->NextSibling();
}
PNode=PNode->NextSibling();
}
QQ:69786714