我用以下方法:
xmldoc: TXMLDocument;xmldoc := TXMLDocument.Create(nil);
xmldoc.LoadFromXML(xml);//xml为xml文件的源程序
xmldoc.Active := true;
可以肯定xml没有错,可是用下面的方法判断,显示为空?
if  xmldoc.IsEmptyDoc then
        ShowMessage('True')
else ShowMessage('False');
请问为什么?