XmlDocument GetFacetDefDom(out string strError) { strError = ""; XmlDocument def_dom = (XmlDocument)app.GetParam("facetdef"); if (def_dom == null) { def_dom = new XmlDocument(); try { def_dom.Load(PathUtil.MergePath(app.DataDir, "cfgs/facetdef.xml")); } catch (Exception ex) { strError = "facetdef.xml 装入 XMLDOM 出错: " + ex.Message; return(null); } app.SetParam("facetdef", def_dom); } return(def_dom); }