Exemplo n.º 1
0
        public static CT_PivotCacheRecords Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_PivotCacheRecords ctObj = new CT_PivotCacheRecords();

            if (node.Attributes["count"] != null)
            {
                ctObj.count = XmlHelper.ReadUInt(node.Attributes["count"]);
            }
            ctObj.r = new List <CT_PivotCacheRecord>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "r")
                {
                    ctObj.rField.Add(CT_PivotCacheRecord.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Exemplo n.º 2
0
        public static CT_PivotCacheRecords Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_PivotCacheRecords ctObj = new CT_PivotCacheRecords();

            if (node.Attributes["count"] != null)
            {
                ctObj.count = XmlHelper.ReadUInt(node.Attributes["count"]);
            }
            ctObj.r = new List <Object>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "n")
                {
                    ctObj.r.Add(CT_Number.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "b")
                {
                    ctObj.r.Add(CT_Boolean.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "d")
                {
                    ctObj.r.Add(CT_DateTime.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "e")
                {
                    ctObj.r.Add(CT_Error.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "m")
                {
                    ctObj.r.Add(CT_Missing.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "s")
                {
                    ctObj.r.Add(CT_String.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "x")
                {
                    ctObj.r.Add(CT_Index.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Exemplo n.º 3
0
 protected void ReadFrom(Stream is1)
 {
     try
     {
         //XmlOptions options = new XmlOptions(DEFAULT_XML_OPTIONS);
         //Removing root element
         //options.LoadReplaceDocumentElement = (/*setter*/null);
         XmlDocument xmldoc = ConvertStreamToXml(is1);
         ctPivotCacheRecords = CT_PivotCacheRecords.Parse(xmldoc.DocumentElement, NamespaceManager);
     }
     catch (XmlException e)
     {
         throw new IOException(e.Message);
     }
 }
Exemplo n.º 4
0
 public static CT_PivotCacheRecords Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_PivotCacheRecords ctObj = new CT_PivotCacheRecords();
     if (node.Attributes["count"] != null)
         ctObj.count = XmlHelper.ReadUInt(node.Attributes["count"]);
     ctObj.r = new List<Object>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "extLst")
             ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "n")
         {
             ctObj.r.Add(CT_Number.Parse(childNode, namespaceManager));
         }
         else if (childNode.LocalName == "b")
         {
             ctObj.r.Add(CT_Boolean.Parse(childNode, namespaceManager));
         }
         else if (childNode.LocalName == "d")
         {
             ctObj.r.Add(CT_DateTime.Parse(childNode, namespaceManager));
         }
         else if (childNode.LocalName == "e")
         {
             ctObj.r.Add(CT_Error.Parse(childNode, namespaceManager));
         }
         else if (childNode.LocalName == "m")
         {
             ctObj.r.Add(CT_Missing.Parse(childNode, namespaceManager));
         }
         else if (childNode.LocalName == "s")
         {
             ctObj.r.Add(CT_String.Parse(childNode, namespaceManager));
         }
         else if (childNode.LocalName == "x")
         {
             ctObj.r.Add(CT_Index.Parse(childNode, namespaceManager));
         }
     }
     return ctObj;
 }
Exemplo n.º 5
0
        public XSSFPivotCacheRecords()
            : base()
        {

            ctPivotCacheRecords = new CT_PivotCacheRecords();
        }