Click here to Skip to main content
16,005,316 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: XmlReader problem (C# / VB) Pin
Rolf Baxter20-May-07 10:13
Rolf Baxter20-May-07 10:13 
QuestionHow to transform string of XML to HTML Pin
jjamjatra17-May-07 10:44
jjamjatra17-May-07 10:44 
QuestionCode generation using XSD Pin
Gokulan Venattil14-May-07 1:56
Gokulan Venattil14-May-07 1:56 
QuestionEquivalent of of html in xsl Pin
vikas198214-May-07 1:31
vikas198214-May-07 1:31 
AnswerRe: Equivalent of of html in xsl Pin
DavidNohejl16-May-07 0:45
DavidNohejl16-May-07 0:45 
AnswerRe: Equivalent of of html in xsl Pin
PIEBALDconsult17-May-07 17:16
mvePIEBALDconsult17-May-07 17:16 
QuestionXSTL Transformation Include in .net 1.1 (Please Help) Pin
Cape Town Developer13-May-07 21:34
Cape Town Developer13-May-07 21:34 
QuestionXML Validation in .NET 2.0 C# Pin
SABhatti11-May-07 5:27
SABhatti11-May-07 5:27 
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



-----

AnswerRe: XML Validation in .NET 2.0 C# Pin
DavidNohejl16-May-07 0:40
DavidNohejl16-May-07 0:40 
Questionhow to return the xml from a web service and store it into a data grid? Pin
pabloraul10-May-07 9:16
pabloraul10-May-07 9:16 
AnswerRe: how to return the xml from a web service and store it into a data grid? Pin
pabloraul11-May-07 6:07
pabloraul11-May-07 6:07 
QuestionHow to search in XML Pin
Stormint9-May-07 3:25
Stormint9-May-07 3:25 
AnswerRe: How to search in XML Pin
Stefan Troschuetz9-May-07 10:02
Stefan Troschuetz9-May-07 10:02 
QuestionDynamic XSD Pin
kashasd6-May-07 20:37
kashasd6-May-07 20:37 
AnswerRe: Dynamic XSD Pin
Stefan Troschuetz6-May-07 21:27
Stefan Troschuetz6-May-07 21:27 
Questionabout XML Pin
Hamsika rani5-May-07 14:45
Hamsika rani5-May-07 14:45 
QuestionC# combobox populated from xml file Pin
Planker5-May-07 4:49
Planker5-May-07 4:49 
QuestionXML MessageBoard Pin
AndreaTheDove4-May-07 7:43
AndreaTheDove4-May-07 7:43 
AnswerRe: XML MessageBoard Pin
Geo Pa4-May-07 8:07
Geo Pa4-May-07 8:07 
GeneralRe: XML MessageBoard Pin
AndreaTheDove4-May-07 9:14
AndreaTheDove4-May-07 9:14 
GeneralRe: XML MessageBoard Pin
Geo Pa4-May-07 9:33
Geo Pa4-May-07 9:33 
GeneralRe: XML MessageBoard Pin
AndreaTheDove4-May-07 9:45
AndreaTheDove4-May-07 9:45 
GeneralRe: XML MessageBoard Pin
Geo Pa4-May-07 9:58
Geo Pa4-May-07 9:58 
GeneralRe: XML MessageBoard Pin
AndreaTheDove4-May-07 10:08
AndreaTheDove4-May-07 10:08 
GeneralRe: XML MessageBoard Pin
AndreaTheDove4-May-07 21:23
AndreaTheDove4-May-07 21:23 

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.