The project requires to create an XML file. After reading online posts I decided to go with LINQ to XML. (Please keep in mind that I am new to LINQ.) I got stuck at retrieving the data from the DataTable into the XElements.
XElement FloridaData = new XElement("submitted_file",
new XElement("schema_version", "123.45"),
new XElement("company",
new XElement("company_code",
new XElement("transaction",
new XElement("transaction_type", ""),
new XElement("policy",
new XElement("policy_number", ""),
new XElement("policy_effective_date", ""),
new XElement("policy_through_date", ""),
new XElement("insurance_company_notes", "")
)));
No comments:
Post a Comment