Ejemplo n.º 1
0
    //
    public static XmlDocument LoadXmlConfig(string fileName, string text)
    {
        XmlDocument xmlDoc = new XmlDocument();

        if (GlobalConst.IS_USEBINFILE)
        {
            xmlDoc.LoadXml(XMLUtility.Bin2XML(fileName));
        }
        else
        {
            xmlDoc.LoadXml(text);
        }
        return(xmlDoc);
    }
Ejemplo n.º 2
0
    //
    public static XmlDocument LoadXmlConfig(string fileName, object obj)
    {
        XmlDocument xmlDoc = new XmlDocument();

        if (GlobalConst.IS_USEBINFILE)
        {
            xmlDoc.LoadXml(XMLUtility.Bin2XML(fileName));
        }
        else
        {
            TextAsset conf = obj as TextAsset;
            xmlDoc.LoadXml(conf.text);
        }
        return(xmlDoc);
    }
Ejemplo n.º 3
0
    //
    public static XmlDocument LoadXmlConfig(string fileName)
    {
        XmlDocument xmlDoc = new XmlDocument();

        if (GlobalConst.IS_USEBINFILE)
        {
            xmlDoc.LoadXml(XMLUtility.Bin2XML(fileName));
        }
        else
        {
            string conf = ResourceLoadManager.Instance.GetConfigText(fileName);
            xmlDoc.LoadXml(conf);
        }
        return(xmlDoc);
    }