validating xmlfile with xsd

iam validating xml file with xsd usingXmlValidatingReader in that it is validating successfully. But the problem is it is showing same error for all the validation errors that is"element has an invalid value according to its data type" . Now the problem is i want to know that what datatype error is that one like maxoccur error ,maxlength . i want to show that what type of error is that according to the attribute in xsd .

iam doing this in .net1.1

plz any one now the solution plz send me the solution it is very urgent

thanks

phanikumar

[765 byte] By [blastthexml] at [2008-2-4]
# 1
Can you post the xsd and xml or is it too large? To me it sounds like you have a value in your xml that is not matching what is allowed by the xsd. Either a string where an int should be or vice versa. Hard to say though without looking at the xsd and xml. I would also check to see if you have a maxlength set and if any of the data exceeds that maxlength.
JimdelaBastide at 2007-9-28 > top of Msdn Tech,Office Live Development,Microsoft SDK for Open XML Formats...