public static __XDocument Parse(string text)
        {
            var doc = new DOMDocument();

            doc.loadXML(text);

            return new __XDocument { InternalDocument = doc };
        }
        public void InternalEnsureValue()
        {
            if (this.InternalValue == null)
            {
                var doc = new DOMDocument();

                var item = doc.createElement(this.InternalElementName.LocalName);
                doc.appendChild(item);

                this.InternalValue = doc.documentElement;
            }
        }