internal static CT_ExternalBook Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_ExternalBook ctObj = new CT_ExternalBook();

            ctObj.idField = XmlHelper.ReadString(node.Attributes["id", namespaceManager.LookupNamespace("r")]);
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "sheetNames")
                {
                    ctObj.sheetNamesField = CT_ExternalSheetNames.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "definedNames")
                {
                    ctObj.definedNamesField = CT_ExternalDefinedNames.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "sheetDataSet")
                {
                    ctObj.sheetDataSetField = CT_ExternalSheetDataSet.Parse(childNode, namespaceManager);
                }
            }

            return(ctObj);
        }
        internal static CT_ExternalDefinedNames Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            CT_ExternalDefinedNames ctObj = new CT_ExternalDefinedNames();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                ctObj.definedNameField.Add(CT_ExternalDefinedName.Parse(childNode, namespaceManager));
            }
            return(ctObj);
        }
Ejemplo n.º 3
0
 internal static CT_ExternalDefinedNames Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     CT_ExternalDefinedNames ctObj = new CT_ExternalDefinedNames();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         ctObj.definedNameField.Add(CT_ExternalDefinedName.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }