Re: Validation of a stack of XSD files (.NET 2.0)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Martin
When running the code, I get a few (9) warnings and 3 errors - I haven't tracked down which XSD files they're in yet.

Simply open the file in Visual Studio, for instance using
Project -> Add existing item
OK, I do that and see that the relatives paths are unresolved, in the top-most XSD file -
(sorry - thought I could send a small embedded image here - obviously not)
The wavy line under xs:import and xs:include indicates they're unresolved.
Clicking the menu XML>Schemas ... I can scroll down and Use that schema.
But I don't see how I can get any useful information out of this.
--
Ian Thomas

"Martin Honnen" <mahotrash@xxxxxxxx> wrote in message news:%23P84$l2XIHA.3696@xxxxxxxxxxxxxxxxxxxxxxx
gxdata wrote:
Ok, that sort of works for me - thanks.
I am getting some schema compile warnings and errors, hence exception
messages.
However, the .sourceUri seems to be null - and it's the most useful thing to
look at.

Actually, I also used the ValidXSD class
(http://msdn2.microsoft.com/en-us/library/system.xml.schema.xmlschemaexception(VS.80).aspx)

Will these routines run through ALL of the XSD files, or stop on first
error?

If you set up a ValidationEventHandler then it should not stop on the
first error but continue to process the main schema and includes and
imports that work.

In VS2005 or 2008, exactly what do I need to do to "load the main schema
into the schema editor"? I've not done that. Is it a rag & drop operation?

Simply open the file in Visual Studio, for instance using
Project -> Add existing item


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/


Relevant Pages

  • Re: Validation of a stack of XSD files (.NET 2.0)
    ... I get a few warnings and 3 errors - I haven't tracked down which XSD files they're in yet. ... > Simply open the file in Visual Studio, ... I can scroll down and Use that schema. ... > first error but continue to process the main schema and includes and ...
    (microsoft.public.dotnet.xml)
  • Re: xsd files only: enough to start writing app. code of a DB-related component ?
    ... These schema definition files aren't very numerous (about 20 ... EIS database directly, and the database we were interested in was ISAM, and ... If they are good XSD files consider yourselves lucky. ... database schema from an XML schema. ...
    (comp.lang.java.programmer)
  • Re: Validation of a stack of XSD files (.NET 2.0)
    ... I am getting some schema compile warnings and errors, ... this validation: ... There is a folder tree structure of 70+ XSD files that has a start point ...
    (microsoft.public.dotnet.xml)
  • Re: Schema Collection -> Strongly Typed Dataset
    ... Maybe my question is a 2005 Beta IDE question after all. ... xsd files into a test project, then went to the lowest level xsd (the one ... So it seems that my schema is in fact qualified to be a dataset, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Problem with xsd.exe
    ... I get a number of "schema validation: warnings and "element is not ... The one area that you can look it is the <namespace> tag, ...
    (microsoft.public.dotnet.framework.webservices)