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

C#

 
Generalprogress bar Pin
Newbie_Toy21-Jan-05 19:35
Newbie_Toy21-Jan-05 19:35 
GeneralRe: progress bar Pin
Dave Kreskowiak23-Jan-05 6:28
mveDave Kreskowiak23-Jan-05 6:28 
GeneralCAD programming with C# Pin
Abhinandan_Shah21-Jan-05 19:19
Abhinandan_Shah21-Jan-05 19:19 
GeneralRe: CAD programming with C# Pin
Dave Kreskowiak23-Jan-05 6:27
mveDave Kreskowiak23-Jan-05 6:27 
GeneralRe: CAD programming with C# Pin
Abhinandan_Shah23-Jan-05 7:52
Abhinandan_Shah23-Jan-05 7:52 
GeneralRe: CAD programming with C# Pin
Dave Kreskowiak23-Jan-05 8:39
mveDave Kreskowiak23-Jan-05 8:39 
Generalwebservice problem Pin
WDI21-Jan-05 18:09
WDI21-Jan-05 18:09 
Generalreading two or more xml files using xml document Pin
dhol21-Jan-05 17:22
dhol21-Jan-05 17:22 
Hi
For understanding my problem, I will explain what my program does.I will give instructions, what to do , u can see that. And I will say what my requirement is ,, so that u can rectify my problem.


I have a 3 textboxes in the form.

Theer is a xml file with a value named "style_desc" in it.(ie, Field Names.xml in the project directory)

1st Textbox ------ give the schema file.(Input Schema.xsd from the project directory)

2nd TextBox------- give the input xml file( styleData.xml in the project directory)
some about 30 values for a single field named "style_desc."

3rd TextBox-------- give ur own path to create an xml file with data's fo rthe xml schema.

Then click button LOAD----- what it does is that stores the value(from the Feld Nams.xml) in an array and checks for the entered schema(ie, Input Schema.xsd) that there is ay field named "style_desc". Then if it exists in the schema then itreads the values of "style_desc" and stores into a new xml(for the third Textbox file) and the reamining fields of schema will be automatically loaded with values accodring to the datatype for about 200 values.

ie, for string ---- castle hampers1, castle hampers2.... upto 200 names
for float ----- 4.5, 5.5,.... upto 200 values

so for the style_desc column alone(for 200 data's), first 30 values from the styleData.xml (as ther is only 30 values)and the remaining will be castle hampers31, 32.... so on.

this is what I did.


Now my requirement is that I have some other xml file (say billtodata.xml ) with about 30 values for a field named "billto_name"..

Now I should add "billto_name" along with "style_desc" in the xml file(Field Names.xml) . Now it should be also stored in the array and check for the schema whether there is any existence of the field named "billto_name" trhen if it exists it should read the values from billtodata.xml and load it into the new xml with the values for the billto_name.

so Like this I will be adding mor xml file with values for single field . So can u please finish it for me . or else give the correct idea with some coding help.
I think u will be clear now ..
This is very urgent need for me.Here is my coding part. please correct me to do my requrement.
here is my coding part where under the load button I have this.there will some *****************. that is the place wher I will load styledata.xml.



private void button2_Click(object sender, System.EventArgs e)
{
ArrayList FiledNames = new ArrayList();
XmlDocument xdc = new XmlDocument();
//Read the file which contain the field names
xdc.Load(@"C:\CDEV\testdatagenerator\Field Names.xml");
XmlNodeList nodFields = xdc.DocumentElement.SelectNodes("//item");
for(int i=0; i
GeneralLDAP vs LDAPS port 389 vs port 636 on Active Directory Pin
csecret21-Jan-05 13:17
csecret21-Jan-05 13:17 
Generalplaying video file in c# Pin
XavierSpunky21-Jan-05 12:45
XavierSpunky21-Jan-05 12:45 
GeneralRe: playing video file in c# Pin
Judah Gabriel Himango21-Jan-05 19:50
sponsorJudah Gabriel Himango21-Jan-05 19:50 
Questioncould any one tell me how ? Pin
ImanMahmoud21-Jan-05 12:23
ImanMahmoud21-Jan-05 12:23 
AnswerRe: could any one tell me how ? Pin
Dennis C. Dietrich21-Jan-05 12:56
Dennis C. Dietrich21-Jan-05 12:56 
AnswerRe: could any one tell me how ? Pin
PatrickShane21-Jan-05 16:46
PatrickShane21-Jan-05 16:46 
GeneralRe: could any one tell me how ? Pin
ImanMahmoud22-Jan-05 3:22
ImanMahmoud22-Jan-05 3:22 
GeneralRe: could any one tell me how ? Pin
Rob Graham22-Jan-05 7:50
Rob Graham22-Jan-05 7:50 
GeneralRe: could any one tell me how ? Pin
PatrickShane22-Jan-05 8:18
PatrickShane22-Jan-05 8:18 
GeneralRe: could any one tell me how ? Pin
DougW4822-Jan-05 9:24
DougW4822-Jan-05 9:24 
GeneralQuestion in windows forms : Pin
ImanMahmoud21-Jan-05 12:03
ImanMahmoud21-Jan-05 12:03 
GeneralRe: Question in windows forms : Pin
Dennis C. Dietrich21-Jan-05 12:38
Dennis C. Dietrich21-Jan-05 12:38 
GeneralRe: Question in windows forms : Pin
Pyro Joe21-Jan-05 12:54
Pyro Joe21-Jan-05 12:54 
Generalexpression results highlighting Pin
Pyro Joe21-Jan-05 11:04
Pyro Joe21-Jan-05 11:04 
Generalnewbi - passing values Pin
Dwayner7921-Jan-05 10:41
Dwayner7921-Jan-05 10:41 
GeneralRe: newbi - passing values Pin
MyThread21-Jan-05 12:48
MyThread21-Jan-05 12:48 
GeneralRe: newbi - passing values Pin
Dwayner7921-Jan-05 13:07
Dwayner7921-Jan-05 13:07 

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.