Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sql-guestion Pin
led mike4-May-06 11:53
led mike4-May-06 11:53 
QuestionHiding Properties at Design Time Pin
SnoopyJ4-May-06 10:16
SnoopyJ4-May-06 10:16 
AnswerRe: Hiding Properties at Design Time Pin
Josh Smith4-May-06 10:52
Josh Smith4-May-06 10:52 
Questionpassing Form as refernce to called from dynamically Pin
abhinish4-May-06 9:39
abhinish4-May-06 9:39 
AnswerRe: passing Form as refernce to called from dynamically Pin
led mike4-May-06 9:51
led mike4-May-06 9:51 
AnswerRe: passing Form as refernce to called from dynamically Pin
Josh Smith4-May-06 9:56
Josh Smith4-May-06 9:56 
QuestionPrint Visio Document with C#.NET ????? Pin
nicolas santana4-May-06 9:17
nicolas santana4-May-06 9:17 
QuestionXML string to DataTable Pin
lsugirljte4-May-06 8:36
lsugirljte4-May-06 8:36 
Hi,

I'm trying to do something that seems pretty easy. I have a xml string that I want in a datatable. After some testing, I think the biggest problem is getting the schema into a new datatable from a xml string.

public void XMLStringToDataTable(string as_xml, ref DataTable adt_working)
{
if (adt_working == null)
adt_working = new DataTable();

StringReader lstr_temp = new StringReader(as_xml);
XmlTextReader lxmlReader = new XmlTextReader(lstr_temp);
adt_working.ReadXmlSchema(lxmlReader);
adt_working.ReadXml(lxmlReader);
adt_working.AcceptChanges();
}

Is there any easier/ better way to do this? One that works? I would like to use a datatable instead of a dataset if possible.

sample xml string:
<?xml version="1.0" standalone="yes" ?><d_edit_mod><d_edit_mod_row><contr_fund_id>6229</contr_fund_id><contr_id>190</contr_id><fund_mod_dt>5/4/2006 00:00:00</fund_mod_dt><fund_mod_no>2</fund_mod_no><fund_mod_reason>test</fund_mod_reason><fund_mod_eff_dt>5/4/2006 00:00:00</fund_mod_eff_dt><fund_initial_load>N</fund_initial_load><fund_mod_type_cd>1647</fund_mod_type_cd><fund_mod_status>1678</fund_mod_status></d_edit_mod_row></d_edit_mod>


Thanks, Jessica
QuestionComboBox... Pin
KORCARI4-May-06 7:42
KORCARI4-May-06 7:42 
Questionsub report problem Pin
shabonaa4-May-06 7:24
shabonaa4-May-06 7:24 
QuestionDataset and Datagrid Pin
TheJudeDude4-May-06 6:00
TheJudeDude4-May-06 6:00 
AnswerRe: Dataset and Datagrid Pin
esjq4-May-06 20:12
esjq4-May-06 20:12 
GeneralRe: Dataset and Datagrid Pin
TheJudeDude5-May-06 3:30
TheJudeDude5-May-06 3:30 
GeneralRe: Dataset and Datagrid Pin
TheJudeDude5-May-06 6:55
TheJudeDude5-May-06 6:55 
Questioncheckbox control and rowID Pin
karinb4-May-06 5:44
karinb4-May-06 5:44 
QuestionFREE C# Material Pin
dotnetguide4-May-06 5:05
dotnetguide4-May-06 5:05 
AnswerRe: FREE C# Material Pin
Paul Conrad4-May-06 5:35
professionalPaul Conrad4-May-06 5:35 
AnswerRe: FREE C# Material Pin
J4amieC4-May-06 5:38
J4amieC4-May-06 5:38 
GeneralRe: FREE C# Material Pin
Paul Conrad4-May-06 5:41
professionalPaul Conrad4-May-06 5:41 
GeneralRe: FREE C# Material Pin
J4amieC4-May-06 5:53
J4amieC4-May-06 5:53 
QuestionHigh speed/precision timer possible? Pin
Dan Neely4-May-06 4:16
Dan Neely4-May-06 4:16 
AnswerRe: High speed/precision timer possible? Pin
J4amieC4-May-06 4:36
J4amieC4-May-06 4:36 
GeneralRe: High speed/precision timer possible? Pin
Dan Neely4-May-06 4:38
Dan Neely4-May-06 4:38 
GeneralRe: High speed/precision timer possible? Pin
Rob Philpott4-May-06 4:50
Rob Philpott4-May-06 4:50 
GeneralRe: High speed/precision timer possible? Pin
Dan Neely4-May-06 5:53
Dan Neely4-May-06 5:53 

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

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