Please help me to parse my xml into csv with column names. I need c# code in order to achieve my task. Below is my xml content:
- xml version="1.0" encoding="UTF-8"?>
- <soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
- <soap:Body>
- <GetAccountsResponse xmlns="http://Weiland.Ba.retrieval/">
- <GetAccountsResult>
- <AccountRecords>3071AccountRecords>
- <Accounts>
- <Account>
- <AccountId>6AccountId>
- <AccountNumber>000091016138AccountNumber>
- <AccountTitle>3946231 Canada Inc.AccountTitle>
- <BankId>70BankId>
- <BankName>Royal Bank of CanadaBankName>
- <BankRtn>ROYCCAT2BankRtn>
- <BranchId xsi:nil="true"/>
- <CompanyId>86CompanyId>
- <CurrencyName>Canada, DollarCurrencyName>
- <CostCenter>4603CostCenter>
- <ActiveDate>1900-01-01T00:00:00ActiveDate>
- Account>
- Accounts>
- <AsOfDate>2019-10-31 06:04:36.059 -04:00AsOfDate>
- <BankRecords>0BankRecords>
- <CompanyRecords>0CompanyRecords>
- <ReturnCode>0ReturnCode>
- <Version>1.03Version>
- GetAccountsResult>
- GetAccountsResponse>
- soap:Body>
- soap:Envelope>
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ashutosh GuptaPosted Jan 28, 2020, 11:13 PM
Kunjahamed PPosted Jan 28, 2020, 3:06 PM