Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Unfortunately not Pin
Pete O'Hanlon29-Oct-07 22:43
mvePete O'Hanlon29-Oct-07 22:43 
QuestionEnterprise library problem Pin
Raza Hussain29-Oct-07 3:44
Raza Hussain29-Oct-07 3:44 
Question.net 2.0 winform deployment Pin
arkiboys29-Oct-07 3:42
arkiboys29-Oct-07 3:42 
AnswerRe: .net 2.0 winform deployment Pin
Mike Dimmick29-Oct-07 4:23
Mike Dimmick29-Oct-07 4:23 
QuestionHow to use solution of VC#2008 in VC#2005 Pin
Seraph_summer29-Oct-07 3:36
Seraph_summer29-Oct-07 3:36 
AnswerRe: How to use solution of VC#2008 in VC#2005 Pin
Colin Angus Mackay29-Oct-07 3:57
Colin Angus Mackay29-Oct-07 3:57 
GeneralRe: How to use solution of VC#2008 in VC#2005 Pin
Seraph_summer29-Oct-07 4:10
Seraph_summer29-Oct-07 4:10 
GeneralRe: How to use solution of VC#2008 in VC#2005 Pin
Colin Angus Mackay29-Oct-07 5:15
Colin Angus Mackay29-Oct-07 5:15 
AnswerRe: How to use solution of VC#2008 in VC#2005 Pin
Donkey Master29-Oct-07 7:18
Donkey Master29-Oct-07 7:18 
QuestionInstall Managed Application on Clientside Pin
narayanagvs29-Oct-07 2:54
narayanagvs29-Oct-07 2:54 
AnswerRe: Install Managed Application on Clientside Pin
Pete O'Hanlon29-Oct-07 3:21
mvePete O'Hanlon29-Oct-07 3:21 
QuestionProblem with FileDrop Pin
Libor Tinka29-Oct-07 2:22
Libor Tinka29-Oct-07 2:22 
AnswerRe: Problem with FileDrop Pin
benjymous29-Oct-07 3:32
benjymous29-Oct-07 3:32 
QuestionConvert MenuStrip to MainMenu Pin
stancrm29-Oct-07 1:54
stancrm29-Oct-07 1:54 
AnswerRe: Convert MenuStrip to MainMenu Pin
Libor Tinka29-Oct-07 2:38
Libor Tinka29-Oct-07 2:38 

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.