InfoPathScraper.Model.InfoPathManifest.InitializeXDocumentNode C# (CSharp) Method

InitializeXDocumentNode() private method

This is the root node of the manifest.xsf file from which get a few interesting properties.
private InitializeXDocumentNode ( ) : void
return void
        private void InitializeXDocumentNode()
        {
            if (_xDocumentNode != null) return;
            IEnumerable<XElement> elements = XDocument.Descendants(xsfNamespace + xDocumentClass);
            foreach (XElement element in elements)
            {
                if (_xDocumentNode != null) throw new ArgumentException("Manifest has multiple xDocumentClass nodes");
                _xDocumentNode = element;
            }
        }