Ejemplo n.º 1
0
        public static WatermapFile GetWatermap(XmlDocument doc)
        {
            WatermapFile wmf = new WatermapFile();

            wmf.ReadXml(doc.DocumentElement);
            return(wmf);
        }
Ejemplo n.º 2
0
        public static string GetXml(WatermapFile wmf)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine(XmlHeader);

            if ((wmf != null))
            {
                var name = "Watermap";

                OpenTag(sb, 0, name);

                wmf.WriteXml(sb, 1);

                CloseTag(sb, 0, name);
            }

            return(sb.ToString());
        }