XML And MemoryStream?
            MemoryStream oMemoryStream = Common.DecrypetXML(FilePath);
            XmlDocument oXmlDocument = new XmlDocument();
            oXmlDocument.Load(oMemoryStream);

            //Check if year exists
            if (oXmlDocument.DocumentElement.SelectSingleNode("//Year[@Year='" + Year + "']") == null)
            {
                XmlElement oNewYearElement = oXmlDocument.CreateElement("Year");
                oNewYearElement.SetAttribute("Year", Year);
                oXmlDocument.DocumentElement.AppendChild(oNewYearElement);
                oXmlDocument.Save(?????);
            }

            //Check if month exists
            if (oXmlDocument.SelectSingleNode("//Year[@Year='" + Year + "']//Month[@Month='" + Month + "']") == null)
            {
                XmlElement oNewMonthElement = oXmlDocument.CreateElement("Month");
                oNewMonthElement.SetAttribute("Month", Month);
                oXmlDocument.DocumentElement.SelectSingleNode("//Year[@Year='" + Year + "']").AppendChild(oNewMonthElement);
                oXmlDocument.Save(????);
            }

            //OutputStream of the xml document
            XmlReader oXmlReader = XmlReader.Create(???);

I decrypt an xml and produce a MemoryStream from it, then i append some data to it.
Now how can i save these data the dynamic xml document i created and how to read from it ?
XML And MemoryStream?
===

            MemoryStream oMemoryStream = Common.DecrypetXML(FilePath);
            XmlDocument oXmlDocument = new XmlDocument();
            oXmlDocument.Load(oMemoryStream);

            //Check if year exists
            if (oXmlDocument.DocumentElement.SelectSingleNode("//Year[@Year='" + Year + "']") == null)
            {
                XmlElement oNewYearElement = oXmlDocument.CreateElement("Year");
                oNewYearElement.SetAttribute("Year", Year);
                oXmlDocument.DocumentElement.AppendChild(oNewYearElement);
                oXmlDocument.Save(?????);
            }

            //Check if month exists
            if (oXmlDocument.SelectSingleNode("//Year[@Year='" + Year + "']//Month[@Month='" + Month + "']") == null)
            {
                XmlElement oNewMonthElement = oXmlDocument.CreateElement("Month");
                oNewMonthElement.SetAttribute("Month", Month);
                oXmlDocument.DocumentElement.SelectSingleNode("//Year[@Year='" + Year + "']").AppendChild(oNewMonthElement);
                oXmlDocument.Save(????);
            }

            //OutputStream of the xml document
            XmlReader oXmlReader = XmlReader.Create(???);

I decrypt an xml and produce a MemoryStream from it, then i append some data to it.
Now how can i save these data the dynamic xml document i created and how to read from it ?