﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Decrypting XML file</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 23:05:02 GMT</lastBuildDate><ttl>20</ttl><item><title>Decrypting XML file</title><link>http://forum.strataframe.net/FindPost6777.aspx</link><description>I have a xml file&amp;nbsp;that stores some sensitive&amp;nbsp;information.&amp;nbsp; I have a routine to load the XML file into a dataset using readxml(File) and then I use CopyDataFrom to move the data into a business object.&lt;/P&gt;&lt;P&gt;This works perfectly, however I need to encrypt the file, so I am now using TripleDesStream.EncryptFile to encrypt the file, but&amp;nbsp;I can't quite figure out how to decrypt the file so I can then use my previous routine to load the business object,&amp;nbsp;without&amp;nbsp;actually decrypting the file on disk. Is there a way to decrypt this file into memory and&amp;nbsp;load the business object from the&amp;nbsp;copy in memory?&amp;nbsp;</description><pubDate>Thu, 15 Feb 2007 09:48:50 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Decrypting XML file</title><link>http://forum.strataframe.net/FindPost6800.aspx</link><description>You can look at the XML Business Object sample that shows how to interact with XML and BOs.&amp;nbsp; If you use the StrataFrame XML classes, you can have XML files automatically updated for you if you change the structure as well as encrypt the XML files for you when opening and writing.&lt;/P&gt;&lt;P&gt;[codesnippet]MicroFour.StrataFrame.Xml.XmlBasics.OpenXmlFile("1.0", "MyTable", "c:\MyXML.XML", CreateMyColumnStructure())&lt;BR&gt;MicroFour.StrataFrame.Xml.XmlBasics.WriteXmlFile(YourDataSet, "c:\MyXML.XML", True)[/codesnippet]</description><pubDate>Thu, 15 Feb 2007 09:48:50 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>