コード例 #1
0
ファイル: XfaForm.cs プロジェクト: KenneyChen/itext7-dotnet
        /// <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);
            }
        }