Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
Questionprinting String problem Pin
netJP12L29-Oct-07 7:29
netJP12L29-Oct-07 7:29 
AnswerRe: printing String problem Pin
Ennis Ray Lynch, Jr.29-Oct-07 8:40
Ennis Ray Lynch, Jr.29-Oct-07 8:40 
GeneralRe: printing String problem Pin
netJP12L29-Oct-07 8:55
netJP12L29-Oct-07 8:55 
GeneralI really don't know Pin
Ennis Ray Lynch, Jr.29-Oct-07 9:13
Ennis Ray Lynch, Jr.29-Oct-07 9:13 
GeneralRe: I really don't know Pin
netJP12L29-Oct-07 9:58
netJP12L29-Oct-07 9:58 
GeneralRe: I really don't know Pin
Ennis Ray Lynch, Jr.29-Oct-07 10:18
Ennis Ray Lynch, Jr.29-Oct-07 10:18 
QuestionProblem with code after ShowDialog and XML add node Pin
Rapier50329-Oct-07 7:23
Rapier50329-Oct-07 7:23 
AnswerRe: Problem with code after ShowDialog and XML add node Pin
Andrei Ungureanu29-Oct-07 22:38
Andrei Ungureanu29-Oct-07 22:38 
QuestionHow to make sure the string has only Alphabet and Numberic in it? Pin
Khoramdin29-Oct-07 7:04
Khoramdin29-Oct-07 7:04 
AnswerRe: How to make sure the string has only Alphabet and Numberic in it? Pin
Le centriste29-Oct-07 7:17
Le centriste29-Oct-07 7:17 
Questiontranslate own syntax to c# Pin
laserbaronen29-Oct-07 5:34
laserbaronen29-Oct-07 5:34 
AnswerRe: translate own syntax to c# Pin
Colin Angus Mackay29-Oct-07 5:37
Colin Angus Mackay29-Oct-07 5:37 
GeneralRe: translate own syntax to c# Pin
laserbaronen29-Oct-07 5:39
laserbaronen29-Oct-07 5:39 
GeneralRe: translate own syntax to c# Pin
Colin Angus Mackay29-Oct-07 6:07
Colin Angus Mackay29-Oct-07 6:07 
QuestionSystem.Drawing.Image from URL. Pin
Dio2229-Oct-07 4:52
Dio2229-Oct-07 4:52 
AnswerRe: System.Drawing.Image from URL. Pin
martin_hughes29-Oct-07 5:21
martin_hughes29-Oct-07 5:21 
QuestionChecking for well formed XML Pin
Ennis Ray Lynch, Jr.29-Oct-07 4:51
Ennis Ray Lynch, Jr.29-Oct-07 4:51 
AnswerRe: Checking for well formed XML Pin
martin_hughes29-Oct-07 5:27
martin_hughes29-Oct-07 5:27 
GeneralUnfortunately not Pin
Ennis Ray Lynch, Jr.29-Oct-07 5:56
Ennis Ray Lynch, Jr.29-Oct-07 5:56 
GeneralRe: Unfortunately not Pin
Pete O'Hanlon29-Oct-07 6:08
mvePete O'Hanlon29-Oct-07 6:08 
GeneralRe: Unfortunately not Pin
Ennis Ray Lynch, Jr.29-Oct-07 6:17
Ennis Ray Lynch, Jr.29-Oct-07 6:17 
GeneralRe: Unfortunately not Pin
J4amieC29-Oct-07 7:00
J4amieC29-Oct-07 7:00 
GeneralRe: Unfortunately not Pin
Ennis Ray Lynch, Jr.29-Oct-07 7:39
Ennis Ray Lynch, Jr.29-Oct-07 7:39 
I am accepting user input which must be well-formed XML. From your post you do not make a distinction between application thrown exceptions and application driven exception flows. In both cases the user is presented with a graphical exception flow requesting better data; however, in one of the cases the underlying code is not dependent on a try catch but a series of programmatic statements.

This all leads down to the same path
if(!IsWellFormed(someXml))
is better than
try{
//Or other derivatives
XmlDocument document = new XmlDocument();
document.LoadXml(someXml);
}
catch{
...
}


J4amieC wrote:
I suspect this is the case, and you're being provided with a string of data that is sometimes malformed. This swings you back in a circle - because you can't change that process that generates the Xml (presumably??) and so you're back to an exception.




Need a C# Consultant? I'm available.


Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

GeneralRe: Unfortunately not Pin
J4amieC29-Oct-07 7:47
J4amieC29-Oct-07 7:47 
GeneralRe: Unfortunately not Pin
Ennis Ray Lynch, Jr.29-Oct-07 7:48
Ennis Ray Lynch, Jr.29-Oct-07 7:48 

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.