Table driven way to read/write properties

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Ok, this is a weird one. Im hoping someone here can help.<br/><br/>I need to read/write a boatload of properties between an XML file(part of a DOCX file) and a set of properties I hold in a hashtable. So read from the XML to write to the hashtable; and read from the hashtable to write to the XML.<br/><br/>The best approach I have thought of so far is I get the Document, load it in an XmlDocument, have a table that has xpath statements for each property, and walk that table.<br/><br/>However, I am learning XDocument, LINQ, etc (which I really like so far). Is there a better way to do this using LINQ?<br/><br/>thanks - dave<br/><br/>ps - my first impression of LINQ for XML is it provides a much simplier way to access XML that is also a lot clearer. So Im trying to use it exclusively for XML going forward.<hr class="sig Windward Reports - http://www.windwardreports.com Worlds Greatest SharePoint Reporting & DocGen

View the full article
 
Back
Top