Click here to Skip to main content
15,921,279 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Use __LINE__ & __FUNCTION__ in C# Pin
Nader Elshehabi24-Sep-06 23:14
Nader Elshehabi24-Sep-06 23:14 
GeneralRe: How to Use __LINE__ & __FUNCTION__ in C# Pin
asishpatnaik25-Sep-06 1:01
asishpatnaik25-Sep-06 1:01 
AnswerRe: How to Use __LINE__ & __FUNCTION__ in C# Pin
Nader Elshehabi25-Sep-06 1:25
Nader Elshehabi25-Sep-06 1:25 
QuestionHow do you read the end of an XML file in C#? Pin
bigove24-Sep-06 22:55
bigove24-Sep-06 22:55 
AnswerRe: How do you read the end of an XML file in C#? Pin
Ed.Poore24-Sep-06 23:04
Ed.Poore24-Sep-06 23:04 
GeneralRe: How do you read the end of an XML file in C#? Pin
bigove24-Sep-06 23:52
bigove24-Sep-06 23:52 
GeneralRe: How do you read the end of an XML file in C#? Pin
Ed.Poore25-Sep-06 0:36
Ed.Poore25-Sep-06 0:36 
GeneralRe: How do you read the end of an XML file in C#? Pin
bigove25-Sep-06 1:58
bigove25-Sep-06 1:58 
I do ensure all nodes are closed when the end of file is found - at least I think so, but I am sure it is something in that area that is causing the problem.

As for the exception, there isn't one; the program doesn't complete. The XML file's are created, but in the last one towards the end of the file, in the middle of a record is the message:

"XML page cannot be displayed

The following tags were not closed: message."

Where message is my root node. Yet it closes them in the other files (when the original XML file still has more records to read)...
GeneralRe: How do you read the end of an XML file in C#? Pin
Ed.Poore25-Sep-06 2:08
Ed.Poore25-Sep-06 2:08 
GeneralRe: How do you read the end of an XML file in C#? Pin
bigove25-Sep-06 2:55
bigove25-Sep-06 2:55 
GeneralRe: How do you read the end of an XML file in C#? Pin
Ed.Poore25-Sep-06 4:54
Ed.Poore25-Sep-06 4:54 
GeneralRe: How do you read the end of an XML file in C#? Pin
bigove25-Sep-06 5:24
bigove25-Sep-06 5:24 
GeneralRe: How do you read the end of an XML file in C#? Pin
Ed.Poore25-Sep-06 6:13
Ed.Poore25-Sep-06 6:13 
GeneralRe: How do you read the end of an XML file in C#? Pin
Ed.Poore25-Sep-06 6:15
Ed.Poore25-Sep-06 6:15 
GeneralRe: How do you read the end of an XML file in C#? Pin
bigove25-Sep-06 22:13
bigove25-Sep-06 22:13 
GeneralRe: How do you read the end of an XML file in C#? Pin
Ed.Poore25-Sep-06 23:28
Ed.Poore25-Sep-06 23:28 
GeneralRe: How do you read the end of an XML file in C#? Pin
bigove25-Sep-06 23:44
bigove25-Sep-06 23:44 
GeneralRe: How do you read the end of an XML file in C#? Pin
Ed.Poore26-Sep-06 0:03
Ed.Poore26-Sep-06 0:03 
GeneralRe: How do you read the end of an XML file in C#? Pin
bigove26-Sep-06 0:20
bigove26-Sep-06 0:20 
GeneralRe: How do you read the end of an XML file in C#? Pin
Ed.Poore26-Sep-06 0:25
Ed.Poore26-Sep-06 0:25 
GeneralRe: How do you read the end of an XML file in C#? Pin
bigove26-Sep-06 0:36
bigove26-Sep-06 0:36 
GeneralRe: How do you read the end of an XML file in C#? Pin
Ed.Poore26-Sep-06 1:05
Ed.Poore26-Sep-06 1:05 
GeneralRe: How do you read the end of an XML file in C#? Pin
bigove26-Sep-06 1:25
bigove26-Sep-06 1:25 
GeneralRe: How do you read the end of an XML file in C#? Pin
Ed.Poore26-Sep-06 1:30
Ed.Poore26-Sep-06 1:30 
GeneralRe: How do you read the end of an XML file in C#? Pin
bigove26-Sep-06 1:35
bigove26-Sep-06 1:35 

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.