Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
Questionhelp-contact us-email Pin
sanaziuse11-May-07 6:55
sanaziuse11-May-07 6:55 
AnswerRe: help-contact us-email Pin
Jimmanuel11-May-07 8:17
Jimmanuel11-May-07 8:17 
Questionscann image [modified] Pin
yazeed_pal11-May-07 6:50
yazeed_pal11-May-07 6:50 
QuestionSecond window behavior Pin
simplicitylabs11-May-07 6:08
simplicitylabs11-May-07 6:08 
AnswerRe: Second window behavior Pin
Miszou11-May-07 7:11
Miszou11-May-07 7:11 
GeneralRe: Second window behavior Pin
simplicitylabs11-May-07 7:27
simplicitylabs11-May-07 7:27 
Questionstatic methods urgent please Pin
netJP12L11-May-07 5:47
netJP12L11-May-07 5:47 
QuestionValidate an XML File in .NET 2.0 C# Pin
SABhatti11-May-07 5:37
SABhatti11-May-07 5:37 
I am having a weird problem while validating an XML file against its schema. I am setting XmlReaderSettings to xml schema, add the ValidationEventHandler and then create the xml reader. But it throws an exception:

------------------
A first chance exception of type 'System.Xml.Schema.XmlSchemaValidationException' occurred in System.Xml.dll

validate function threw an exception of type 'System.Xml.Schema.XmlSchemaValidationException'

base {System.Xml.Schema.XmlSchemaException}: {"It is an error for both 'length' and either 'minLength' or 'maxLength' to be members of {facets}, unless they are specified in different derivation steps. In which case the following must be true: the {value} of 'minLength' <= the {value} of 'length' <= the {value} of 'maxLength'."}

SourceObject: null

-----------------------

I have validated the same xml file against the same schema using Oxygen XML Editor and XML Spy and these tools consider it a valid document.

Now after that I opened the schema in VS 2005, it underlines the xsd:length attribute and tootip gives the same error. But the above mentioned third party tools consider it valid attribute.

Any thoughts will be highly appreciated




-----


-----

QuestionEmulate Outlook To Field Pin
Gavin Roberts11-May-07 5:21
Gavin Roberts11-May-07 5:21 
AnswerRe: Emulate Outlook To Field Pin
Gavin Roberts13-May-07 21:59
Gavin Roberts13-May-07 21:59 
QuestionGenerating code from a string using c# Pin
Pete O'Hanlon11-May-07 4:35
mvePete O'Hanlon11-May-07 4:35 
AnswerRe: Generating code from a string using c# Pin
Judah Gabriel Himango11-May-07 5:18
sponsorJudah Gabriel Himango11-May-07 5:18 
GeneralRe: Generating code from a string using c# Pin
Pete O'Hanlon11-May-07 8:29
mvePete O'Hanlon11-May-07 8:29 
GeneralRe: Generating code from a string using c# Pin
Judah Gabriel Himango11-May-07 11:35
sponsorJudah Gabriel Himango11-May-07 11:35 
AnswerRe: Generating code from a string using c# Pin
Daniel Grunwald13-May-07 2:40
Daniel Grunwald13-May-07 2:40 
GeneralRe: Generating code from a string using c# Pin
Pete O'Hanlon13-May-07 9:06
mvePete O'Hanlon13-May-07 9:06 
Questionurgent help required Pin
IrfanHaleem11-May-07 4:31
IrfanHaleem11-May-07 4:31 
AnswerStop naming all your messages with please/urgent Pin
leckey11-May-07 4:48
leckey11-May-07 4:48 
GeneralRe: Stop naming all your messages with please/urgent Pin
IrfanHaleem11-May-07 20:59
IrfanHaleem11-May-07 20:59 
AnswerRe: urgent help required Pin
Dave Kreskowiak11-May-07 5:22
mveDave Kreskowiak11-May-07 5:22 
GeneralRe: urgent help required Pin
Paul Conrad11-May-07 8:07
professionalPaul Conrad11-May-07 8:07 
GeneralRe: urgent help required Pin
Dave Kreskowiak11-May-07 9:09
mveDave Kreskowiak11-May-07 9:09 
GeneralRe: urgent help required Pin
Paul Conrad11-May-07 9:11
professionalPaul Conrad11-May-07 9:11 
AnswerRe: urgent help required Pin
Leslie Sanford11-May-07 6:38
Leslie Sanford11-May-07 6:38 
Questioninteraction with plugin! Pin
ashu.singh11-May-07 4:15
ashu.singh11-May-07 4:15 

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.