public static bool Save(string assetPath, NodeBase rootNode)
        {
            if (string.IsNullOrEmpty(assetPath) == true)
            {
                return(false);
            }

            var xml = rootNode.ConvertToXml();

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

            xml.Save(System.IO.Path.Combine(Application.dataPath, assetPath.Replace("Assets/", "")));
            AssetDatabase.Refresh();
            return(true);
        }