Click here to Skip to main content
15,914,419 members
Home / Discussions / C#
   

C#

 
GeneralRe: FileInfo Class Pin
Mike Dimmick20-Jan-05 2:31
Mike Dimmick20-Jan-05 2:31 
GeneralOutLook and WebService Pin
WDI19-Jan-05 21:25
WDI19-Jan-05 21:25 
GeneralRe: OutLook and WebService Pin
Esmo200020-Jan-05 5:22
Esmo200020-Jan-05 5:22 
GeneralDrawing Curves in C# !! Pin
ElJerry19-Jan-05 21:06
ElJerry19-Jan-05 21:06 
GeneralRe: Drawing Curves in C# !! Pin
Heath Stewart20-Jan-05 6:48
protectorHeath Stewart20-Jan-05 6:48 
General[C# / SQL] cmd.ExecuteNonQuery() problem Pin
Rafferty Uy19-Jan-05 19:13
Rafferty Uy19-Jan-05 19:13 
GeneralRe: [C# / SQL] cmd.ExecuteNonQuery() problem Pin
leppie19-Jan-05 19:56
leppie19-Jan-05 19:56 
Generalpls correct the error in this part of the program Pin
dhol19-Jan-05 17:07
dhol19-Jan-05 17:07 
Hi
I have done a program , here The program reads any xml schema file and automatically writes 200 data's to a xml file(name as result.xml)according to their data types.
say for string-john1, john2,john3...etc..
say for decimal-101.20, 102.20, 103.20 ..etc.. so on.
And the program also reads a xml file with single field named address(for exSmile | :) . so the program what it does is checks the schema file whether there is any element named "address" and it stores the fieldnumber(position of the field) and the field name in an array.
then the program reads a another input xml file(which has address values ). then it stores the values from the input xml file into the resultxml


I have done it and I am coming across some errors.I will paste the part of the program what I did.. Please help me to sort out the error.

private void button2_Click(object sender, System.EventArgs e)
{
ArrayList FiledNames = new ArrayList();
ArrayList MatchList = new ArrayList();
XmlTextReader xtr = new XmlTextReader(@"C:\CDEV\testdatagenerator\FIELDNAMES.xml");
while (xtr.Read())
{
switch (xtr.NodeType)
{
case XmlNodeType.Element:
FiledNames.Add(xtr.Name);
break;
}
}
xtr.Close();
XmlDocument xdc = new XmlDocument();
xdc.Load(@"C:\CDEV\testdatagenerator\vw_forecast.xml");
dataSet1.ReadXmlSchema(txtSchema.Text);
foreach (DataTable dTbl in dataSet1.Tables)
{
int i = 0;
object[] oValues = new object[dTbl.Columns.Count];
xdc.Load(@"C:\CDEV\testdatagenerator\FIELDNAMES.xml");
foreach (DataColumn dColmn in dTbl.Columns)
{
for (int y=0; y
GeneralRe: pls correct the error in this part of the program Pin
David Levitt (Myrddin)21-Jan-05 13:18
David Levitt (Myrddin)21-Jan-05 13:18 
Questionhow to remove an EventHandler? Pin
zecodela19-Jan-05 15:53
zecodela19-Jan-05 15:53 
AnswerRe: how to remove an EventHandler? Pin
Robert Rohde19-Jan-05 19:32
Robert Rohde19-Jan-05 19:32 
GeneralFew menu extension (WinForms) Pin
TheDen19-Jan-05 15:20
TheDen19-Jan-05 15:20 
GeneralRe: Few menu extension (WinForms) Pin
Dave Kreskowiak20-Jan-05 3:53
mveDave Kreskowiak20-Jan-05 3:53 
GeneralRe: Few menu extension (WinForms) Pin
Charlie Williams20-Jan-05 5:54
Charlie Williams20-Jan-05 5:54 
GeneralExposing data to WMI Pin
ilkovm19-Jan-05 13:41
ilkovm19-Jan-05 13:41 
GeneralRe: Exposing data to WMI Pin
Heath Stewart20-Jan-05 6:25
protectorHeath Stewart20-Jan-05 6:25 
GeneralRe: Exposing data to WMI Pin
ilkovm20-Jan-05 12:44
ilkovm20-Jan-05 12:44 
QuestionHow can i handle my project in windows event Pin
m.rastgar19-Jan-05 11:36
m.rastgar19-Jan-05 11:36 
AnswerRe: How can i handle my project in windows event Pin
Heath Stewart20-Jan-05 6:09
protectorHeath Stewart20-Jan-05 6:09 
GeneralControl development Pin
PaleyX19-Jan-05 11:30
PaleyX19-Jan-05 11:30 
GeneralRe: Control development Pin
Robert Rohde19-Jan-05 19:36
Robert Rohde19-Jan-05 19:36 
GeneralRe: Control development Pin
PaleyX19-Jan-05 22:02
PaleyX19-Jan-05 22:02 
GeneralRe: Control development Pin
Heath Stewart20-Jan-05 6:03
protectorHeath Stewart20-Jan-05 6:03 
GeneralRe: Control development Pin
PaleyX20-Jan-05 6:28
PaleyX20-Jan-05 6:28 
GeneralRe: Control development Pin
Dave Kreskowiak20-Jan-05 8:06
mveDave Kreskowiak20-Jan-05 8:06 

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.