{"ExtSerial":"KDI2015050501"} {"Date":"02/01/2015"} {"CustomerRefNbr":"15-000001"} {"Description":"2015 FEBRUARY RENTAL"} {"Customer":"TRDA0139"} {"Amount":"482072.5800"} {"AQ_Branch":"KDI"} {"AQ_COA":"4100503000"} {"LineSubAccount":"OPMOPN000"} {"LineTaxCategory":"False"} {"LineQuantity":"1"} {"LineUnitPrice":"482072.580000"} {"AQ_PostStatus":"0"} {"AQ_StatusDate":"02/01/2015"} {"DTS":"02/01/2015"} {"LineDescription":"Office Rental - Zero-Rated Sales"}
<root><ExtSerial>KDI2015050501</ExtSerial> <Date>02/01/2015</Date> <CustomerRefNbr>15-000001</CustomerRefNbr> <Description>2015 FEBRUARY RENTAL</Description> <Customer>TRDA0139</Customer> <Amount>482072.5800</Amount> <AQ_Branch>KDI</AQ_Branch> <AQ_COA>4100503000</AQ_COA> <LineSubAccount>OPMOPN000</LineSubAccount> <LineTaxCategory>False</LineTaxCategory> <LineQuantity>1</LineQuantity> <LineUnitPrice>482072.580000</LineUnitPrice> <AQ_PostStatus>0</AQ_PostStatus> <AQ_StatusDate>02/01/2015</AQ_StatusDate> <DTS>02/01/2015</DTS> <LineDescription>Office Rental - Zero-Rated Sales</LineDescription></root>
static void Main(string[] args) { XElement xEle = XElement.Load(@"D:\Documents\Projects\HeXML\tae.xml"); IEnumerable<XElement> invoices = xEle.Elements(); foreach (var invoice in invoices) { Console.WriteLine(JsonConvert.SerializeXNode(invoice)); } Console.ReadLine(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)