Public Overrides Sub PreExecute() MyBase.PreExecute() 'Provide the path to read the XML file and load the xml document xDoc.Load("file path") End Sub Public Overrides Sub CreateNewOutputRows() For Each xNode As XmlNode In xDoc.SelectNodes("//InvoiceDetails") Me.Output0Buffer.AddRow() Me.Output0Buffer.ID = xNode.ChildNodes(0).InnerText Me.Output0Buffer.Qty = xNode.ChildNodes(1).InnerText Me.Output0Buffer.Price = xNode.ChildNodes(2).InnerText Me.Output0Buffer.customer = xNode.ChildNodes(3).InnerText Me.Output0Buffer.DateReceived = xNode.ChildNodes(4).InnerText Me.Output0Buffer.Tax = xNode.ChildNodes(5).InnerText Me.Output0Buffer.Charges = xNode.ChildNodes(6).InnerText Me.Output0Buffer.Measure = xNode.ChildNodes(7).InnerText Me.Output0Buffer.Comments = xNode.ChildNodes(8).InnerText Me.Output0Buffer.Desc = xNode.ChildNodes(9).InnerText End Sub Public Overrides Sub PostExecute() MyBase.PostExecute() End Sub End Class
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)