Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: Interfaces Pin
DavidNohejl3-Jan-05 12:30
DavidNohejl3-Jan-05 12:30 
GeneralRe: Interfaces Pin
Bahadir Cambel3-Jan-05 14:27
Bahadir Cambel3-Jan-05 14:27 
GeneralRe: Interfaces Pin
DavidNohejl3-Jan-05 14:50
DavidNohejl3-Jan-05 14:50 
GeneralRe: Interfaces Pin
jan larsen3-Jan-05 20:17
jan larsen3-Jan-05 20:17 
GeneralRe: Interfaces Pin
DavidNohejl3-Jan-05 23:56
DavidNohejl3-Jan-05 23:56 
GeneralRe: Interfaces Pin
jan larsen4-Jan-05 0:48
jan larsen4-Jan-05 0:48 
GeneralRe: Interfaces Pin
DavidNohejl4-Jan-05 1:35
DavidNohejl4-Jan-05 1:35 
Generalabout the xmltextreader Pin
dhol2-Jan-05 19:29
dhol2-Jan-05 19:29 
Hi I have done a c# program which reads a schema file and automatically inserts data's according to the datatypes. Now I have another xml file which has original values in it. So while my program is raeading a schema file, if there is field which is same field name of an original values cxml file. my program should read the values of the the original values xml file of that field and insert into the resultant one.

i AM TRYING AS SUCH

ie,
I have used switch ..case in my program

[b]switch(dColmn.DataType.ToString())
{
case "System.String":
if(dColmn.ColumnName.Equals("billto_name"))
{
XmlTextReader xtr = new XmlTextReader("D:\\billtoname.xml");
oValues[i] = ((xtr.NodeType == XmlNodeType.Element) & (xtr.Name == "billto_name"));

}
else
oValues[i] = (string) "Castle Hampers" + j;
break;[/b]

Note:
//***** billto_name is the field which exists in both the schema and original values xml file.//
// j is a for loop for about 0 to 200

the if statemnt given inside is the one I am trying . But when run , the data's inside are shown as "false".

santhosh


GeneralRe: about the xmltextreader Pin
DavidNohejl3-Jan-05 9:35
DavidNohejl3-Jan-05 9:35 
GeneralRe: about the xmltextreader Pin
dhol3-Jan-05 16:36
dhol3-Jan-05 16:36 
GeneralRe: about the xmltextreader Pin
DavidNohejl4-Jan-05 1:30
DavidNohejl4-Jan-05 1:30 
GeneralRe: about the xmltextreader Pin
dhol4-Jan-05 17:45
dhol4-Jan-05 17:45 
GeneralRe: about the xmltextreader Pin
dhol4-Jan-05 17:59
dhol4-Jan-05 17:59 
General'Locking' entire folder Pin
kshet262-Jan-05 18:34
kshet262-Jan-05 18:34 
GeneralRe: 'Locking' entire folder Pin
Dave Kreskowiak3-Jan-05 6:15
mveDave Kreskowiak3-Jan-05 6:15 
GeneralRe: 'Locking' entire folder Pin
kshet263-Jan-05 7:31
kshet263-Jan-05 7:31 
GeneralRe: 'Locking' entire folder Pin
Dave Kreskowiak3-Jan-05 7:45
mveDave Kreskowiak3-Jan-05 7:45 
GeneralRe: 'Locking' entire folder Pin
Dennis C. Dietrich3-Jan-05 7:50
Dennis C. Dietrich3-Jan-05 7:50 
GeneralRe: 'Locking' entire folder Pin
Dave Kreskowiak3-Jan-05 11:05
mveDave Kreskowiak3-Jan-05 11:05 
GeneralRe: 'Locking' entire folder Pin
Dennis C. Dietrich3-Jan-05 11:35
Dennis C. Dietrich3-Jan-05 11:35 
GeneralRe: 'Locking' entire folder Pin
Dave Kreskowiak4-Jan-05 16:43
mveDave Kreskowiak4-Jan-05 16:43 
GeneralRe: 'Locking' entire folder Pin
kshet263-Jan-05 9:36
kshet263-Jan-05 9:36 
GeneralRe: 'Locking' entire folder Pin
Dave Kreskowiak3-Jan-05 11:07
mveDave Kreskowiak3-Jan-05 11:07 
GeneralRe: 'Locking' entire folder Pin
kshet263-Jan-05 17:13
kshet263-Jan-05 17:13 
GeneralRe: 'Locking' entire folder Pin
Dave Kreskowiak4-Jan-05 16:50
mveDave Kreskowiak4-Jan-05 16:50 

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.