Exemple #1
0
    /// <summary>
    /// 获取指定名称的XML
    /// </summary>
    /// <param name="xmlName">XML文档名称</param>
    /// <returns>XmlDocument</returns>
    public XmlDocument GetXMLDocumentByName(string xmlName)
    {
        XmlDocument xml = null;

        //网络获取
        xml = m_netResourceController.GetXMLDocumentByName(xmlName);

        if (xml != null)
        {
            return(xml);
        }

        //网本地获取
        xml = m_xmlResourcesController.GetXMLDocumentByName(xmlName);

        return(xml);
    }