Beispiel #1
0
        /// <summary>Extracts the nodes from the domDocument.</summary>
        private void ExtractNodes()
        {
            IDictionary <String, XNode> xfaNodes = ExtractXFANodes(domDocument);

            if (xfaNodes.ContainsKey("template"))
            {
                templateNode = (XElement)xfaNodes["template"];
            }
            if (xfaNodes.ContainsKey("datasets"))
            {
                datasetsNode = (XElement)xfaNodes["datasets"];
                datasetsSom  = new Xml2SomDatasets(datasetsNode.FirstNode);
            }
            if (datasetsNode == null)
            {
                CreateDatasetsNode(domDocument.FirstNode);
            }
        }