//加载XML文件,并在TreeView上显示
public void loadXML(Stringpath)
{
try
{
this.Cursor =Cursors.WaitCursor;
XmlDocumentxDoc =newXmlDocument();
xDoc.Load(path);
XMLTree.Nodes.Clear();
XMLTree.Nodes.Add(new TreeNode(xDoc.DocumentElement.Name));
TreeNodetNode =<