Click here to Skip to main content
       

C#

 
GeneralRe: log4net on Windows 7 PinmemberZac Greve4-Jan-13 13:59 
GeneralRe: log4net on Windows 7 Pinmemberjschell6-Jan-13 4:44 
GeneralRe: log4net on Windows 7 PinmemberSimon_Whale5-Jan-13 13:04 
GeneralRe: log4net on Windows 7 PinmemberZac Greve5-Jan-13 13:21 
GeneralRe: log4net on Windows 7 PinmemberSimon_Whale6-Jan-13 2:02 
GeneralRe: log4net on Windows 7 PinmemberZac Greve6-Jan-13 7:01 
AnswerRe: log4net on Windows 7 Pinmemberjschell4-Jan-13 14:01 
GeneralRe: log4net on Windows 7 PinmemberSimon_Whale6-Jan-13 2:04 
GeneralRe: log4net on Windows 7 Pinmemberjschell6-Jan-13 4:45 
QuestionC# Equivalent of a Vlookup PinmemberMember 97041533-Jan-13 22:00 
AnswerRe: C# Equivalent of a Vlookup Pinmembernainakarri4-Jan-13 0:55 
GeneralRe: C# Equivalent of a Vlookup PinmemberMember 97041534-Jan-13 1:38 
GeneralRe: C# Equivalent of a Vlookup Pinmembernainakarri4-Jan-13 20:22 
QuestionXML Mapping to CSV PinmemberRickSharp3-Jan-13 11:32 
Hello,
 
I have a fixed XML table thats coming from a Web Service.
<Loan>
<Name>JOHNSON, DANIEL R.</Name>
<Number>BMRES-550</Number>
<BankName>Bank of America</BankName>
<ClosingNo>123456</ClosingNo>
<FundsToSendAmt>49,7560.8600</FundsToSendAmt>
</Loan>
 
I need to convert the XML data to CSV. The data to be converted has commas. So the below method doesn't work:
using (StreamWriter writer = File.CreateText("C:\\username\\password\\Desktop\\Export.csv"))
        {
            DataSet ds = new DataSet();
            ds.ReadXml(XmlReader.Create(new StringReader(myWebreference.GetWebServiceMethod("username", "password1", "Export", "Parameter4", DateTime.Today, DateTime.Today, ""))));
 
            writer.WriteLine(string.Join(",", ds.Tables["Loan"].Columns.Cast<DataColumn>().Select(col => col.ColumnName).ToArray()));
            foreach (DataRow row in ds.Tables["Loan"].Rows)
            {
                writer.WriteLine(string.Join(",", row.ItemArray.Cast<string>().ToArray()));
 
            }
        }

AnswerRe: XML Mapping to CSV Pinmemberfrazzle-me3-Jan-13 11:58 
GeneralRe: XML Mapping to CSV PinmemberRickSharp3-Jan-13 13:01 
GeneralRe: XML Mapping to CSV Pinmemberfrazzle-me3-Jan-13 13:17 
AnswerRe: XML Mapping to CSV PinmemberPIEBALDconsult3-Jan-13 14:07 
GeneralRe: XML Mapping to CSV PinmemberRickSharp4-Jan-13 6:05 
GeneralRe: XML Mapping to CSV PinmemberPIEBALDconsult4-Jan-13 10:46 
GeneralRe: XML Mapping to CSV PinmemberRickSharp4-Jan-13 13:22 
GeneralRe: XML Mapping to CSV Pinmemberjschell4-Jan-13 14:12 
AnswerRe: XML Mapping to CSV Pinmemberjschell4-Jan-13 14:11 
Questionhow to setup that form in the tabpage when tabpage resized Pinmemberlinuxaidtest3-Jan-13 3:47 
AnswerRe: how to setup that form in the tabpage when tabpage resized PinmemberBillWoodruff3-Jan-13 16:42 
QuestionReading Excel from different processes in different computer PinmemberSaneLucky3-Jan-13 2:58 
AnswerRe: Reading Excel from different processes in different computer PinmemberSuper Lloyd3-Jan-13 17:55 
AnswerRe: Reading Excel from different processes in different computer [modified] PinmemberApril Fans3-Jan-13 19:33 
AnswerRe: Reading Excel from different processes in different computer Pinmembermicke.andersson28-Jan-13 4:45 
QuestionKeyValuePair from reference dll PinmemberIsaksson3-Jan-13 1:52 
AnswerRe: KeyValuePair from reference dll PinmemberSuper Lloyd3-Jan-13 17:51 
GeneralRe: KeyValuePair from reference dll PinmemberIsaksson3-Jan-13 21:14 
GeneralRe: KeyValuePair from reference dll PinmemberSuper Lloyd3-Jan-13 22:48 
GeneralRe: KeyValuePair from reference dll PinmemberIsaksson4-Jan-13 0:41 
Questionhow to connect and disconnect to internet by Exist connection Pinmemberapadana_19892-Jan-13 17:44 
QuestionRe: how to connect and disconnect to internet by Exist connection PinmvpRichard MacCutchan2-Jan-13 22:15 
AnswerRe: how to connect and disconnect to internet by Exist connection Pinmemberjschell3-Jan-13 8:11 
QuestionHow to create a colletion of properties in a C# class Pinmemberbnath0012-Jan-13 12:59 
AnswerRe: How to create a colletion of properties in a C# class PinmemberPIEBALDconsult2-Jan-13 13:34 
AnswerRe: How to create a colletion of properties in a C# class PinmvpAbhinav S2-Jan-13 15:42 
AnswerRe: How to create a colletion of properties in a C# class PinmvpOriginalGriff2-Jan-13 21:16 
GeneralRe: How to create a colletion of properties in a C# class Pinmemberbnath0013-Jan-13 5:59 
GeneralRe: How to create a colletion of properties in a C# class PinmvpOriginalGriff3-Jan-13 8:24 
GeneralIf I use Dictionary, I am not able to serialize it Pinmemberbnath0013-Jan-13 9:08 
GeneralRe: If I use Dictionary, I am not able to serialize it PinmvpOriginalGriff3-Jan-13 9:50 
GeneralRe: If I use Dictionary, I am not able to serialize it Pinmemberbnath0013-Jan-13 10:44 
QuestionCA2214 Do not call overridable methods in constructors PinmentorDaveyM692-Jan-13 12:35 
GeneralRe: CA2214 Do not call overridable methods in constructors PinmemberPIEBALDconsult2-Jan-13 13:38 
AnswerRe: CA2214 Do not call overridable methods in constructors PinmemberAlan N2-Jan-13 14:28 
GeneralRe: CA2214 Do not call overridable methods in constructors PinmentorDaveyM692-Jan-13 22:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 31 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid