public CloudConfiguration Create( object parent, object configContext, System.Xml.XmlNode section )
 {
     var cc = new CloudConfiguration ( );
     var serializer = new XmlSerializer ( typeof ( CloudConfiguration ) );
     var doc = new XmlDocument ( );
     var ele = (XmlElement)doc.ImportNode ( section, true );
     doc.AppendChild ( doc.CreateXmlDeclaration ( "1.0", "utf-8", string.Empty ) );
     doc.AppendChild ( ele );
     using ( var ms = new MemoryStream ( ) ) {
         doc.Save ( ms );
         ms.Position = 0;
         cc = (CloudConfiguration)serializer.Deserialize ( ms );
     }
     return cc;
 }
        public CloudConfiguration Create(object parent, object configContext, System.Xml.XmlNode section)
        {
            var cc         = new CloudConfiguration( );
            var serializer = new XmlSerializer(typeof(CloudConfiguration));
            var doc        = new XmlDocument( );
            var ele        = (XmlElement)doc.ImportNode(section, true);

            doc.AppendChild(doc.CreateXmlDeclaration("1.0", "utf-8", string.Empty));
            doc.AppendChild(ele);
            using (var ms = new MemoryStream( )) {
                doc.Save(ms);
                ms.Position = 0;
                cc          = (CloudConfiguration)serializer.Deserialize(ms);
            }
            return(cc);
        }