Re: Problem with xsd.exe

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Schemer" <nowhere@xxxxxxx> wrote in message news:OM92v4nQIHA.1212@xxxxxxxxxxxxxxxxxxxxxxx
>xsd.exe /?
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved

When I try this command:
xsd /c /e:Transaction /l:cpp LargeSchema.xsd

I get a number of "schema validation: warnings and "element is not declared" warnings. Finally, processing stops with a "datatype xxx is missing" error.

LargeSchema.xsd opens and validates in XMLSpy. Is it possible the schema is too complex for xsd.exe to handle? Are there any alternatives to xsd.exe?

Thanks for any suggestions.



Most likely, there is another schema involved, and include schema, that has to be accounted for in the build.

If the XSD is valid, then you should be able to pull all schemas involved into a project by using VS Project Add Existing Item, which will resolve or expose all problems with the XML schema.

The one area that you can look it is the <namespace> tag, which indicates what namespace the XML is in and is using.

XML.xsd that is not in the same <namespace> as the parent XSD can cause a missing element condition, along with the <include> XSD not being found period.


.



Relevant Pages

  • 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)
  • XML Schema Validation (VW 7.4.1 nc)
    ... I used the following code for schema validation of an xml. ... schema:= SchemaHandler parse: schemaURI. ... parse: docURI. ...
    (comp.lang.smalltalk)
  • Direct Binding-Schema validation at receive location
    ... I have a application which is based on schema A.it has a receive location ... where i use XmlTransmit pipeline to do schema validation with schema A. ... all the applications use file adapter for input transmission of xml file. ...
    (microsoft.public.dotnet.general)
  • RE: What is the timing on Lazy Schema Validation
    ... > If the Lazy Schema Validation is used, SQL2k doesn't check schema of the ... > remote table at the beginning of the query. ...
    (microsoft.public.sqlserver.server)
  • 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. ... I can scroll down and Use that schema. ... first error but continue to process the main schema and includes and ...
    (microsoft.public.dotnet.xml)