all groups > dotnet xml > november 2004 >
You're in the

dotnet xml

group:

Is Visual Studio a bad validator?



Is Visual Studio a bad validator? Wole Ogunremi
11/30/2004 1:37:06 AM
dotnet xml: Can anyone please explain why VS.NET 2003 XML IDE sometimes has problems
validating documents against a schema but the same document/schema validates
fine when run against system.xml.xmlvalidatingreader. Is this a documented
bug? I could not find much on google.
In the future I'll validate at
http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.aspx

Re: Is Visual Studio a bad validator? Oleg Tkachenko [MVP]
11/30/2004 1:59:43 PM
[quoted text, click to view]

It would be helpful if you describe also what are those problems you are
talking about.

--
Oleg Tkachenko [XML MVP]
Re: Is Visual Studio a bad validator? Wole Ogunremi
12/1/2004 11:12:26 PM
Eg, if you have an element defined as
<xs:element name="HTMLContent" maxOccurs="1" minOccurs="1">
<xs:complexType mixed="true">
<xs:sequence>
<xs:any maxOccurs="unbounded" namespace="http://www.w3.org/1999/xhtml"
processContents="lax" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
Within the IDE xhtml elements within the HTMLContent element are marked as
error saying "the active schema does not support element 'element'"

Whenever I xs:include or xs:import I always get errors saying things like
"element 'element' is not defined" or "type 'typeName' is not declared or is
not a simpletype"...

I don't have any more problems with it apart from a distrust of the IDE. If
the gotdotnet validator throw error then I know I have a problem...

Thanks anyway.

Wole

[quoted text, click to view]

AddThis Social Bookmark Button