Click here to Skip to main content
16,006,001 members
Home / Discussions / C#
   

C#

 
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 
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 
sorry for late response as I am +6 time zone so you ca count what time it was for me Wink | ;)

<br />
if(dColmn.ColumnName.Equals("billto_name"))<br />
{<br />
XmlTextReader xtr = new XmlTextReader("D:\\billtoname.xml");<br />
oValues[i] = ((xtr.NodeType == XmlNodeType.Element) && (xtr.Name == "billto_name"));<br />
<br />
}<br />


You must call XmlTextReader.Read()[^] to move to another node in XML stream (File, in this case). Since you don't do it, xtr.NodeType & xtr.Name are null (IMO)...
(btw there should be && not bitwise & operator)

As I reread you post, I must ask why there is loop from 1 to 200 or so...
If I understand you have xml file with schema, xml file with values and you are trying to create one more file with...? or? now I don't know Unsure | :~

At least you know now how to read XML files with XmlTextReader...

tell me more about what exactly you want to do and I'll (or somebody else) will hopefully tell you how to do it...

David

Never forget: "Stay kul and happy" (I.A.)
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 
Generalmousewheel!!! Pin
osto2-Jan-05 18:06
osto2-Jan-05 18:06 
GeneralPoll sample Pin
anandg_g2-Jan-05 17:04
anandg_g2-Jan-05 17:04 
GeneralTrouble with asynch sockets...program not exiting from taskmanager list Pin
FocusedWolf2-Jan-05 16:51
FocusedWolf2-Jan-05 16:51 

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.