<WorkOrders> <Config> <UnitNumber></UnitNumber> <EquipmentType></EquipmentType> <DateCreated></DateCreated> </Config> <Record> <RecordNumber>1</RecordNumber> <WorkOrderNumber></WorkOrderNumber> <Date></Date> <EngineHours1></EngineHours1> <EngineHours2></EngineHours2> <TruckReportNumber></TruckReportNumber> <Location></Location> </Record>
xmlDoc.<WorkOrders>(0).Add(<Record> <RecordNumber>1</RecordNumber> <WorkOrderNumber><%= txt_workOrderNumber.Text %></WorkOrderNumber> <Date><%= txt_date.Text %></Date> <EngineHours1><%= txt_engineHours1.Text %></EngineHours1> <EngineHours2><%= txt_engineHours2.Text %></EngineHours2> <TruckReportNumber><%= txt_truckReportNumber.Text %></TruckReportNumber> <Location><%= txt_location.Text %></Location> </Record>) xmlDoc.Save(xmlFile)