Alvin050789 / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

Code generation using .NET tool xsd does fail #155

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

Comments: 
The output of the xsd tool is as follows:
8<-------------------------------------------------
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved.
Schema validation warning: The 'http://www.w3.org/2005/Atom:author' element is n
ot declared. Line 355, position 12.

Schema validation warning: The 'http://www.w3.org/2005/Atom:link' element is not
declared. Line 357, position 12.
Schema validation warning: The
'urn:oasis:names:tc:ciq:xsdschema:xAL:2.0:Address
Details' element is not declared. Line 360, position 12.

Warning: Schema could not be validated. Class generation may fail or may produce
incorrect results.

Error: Error generating classes for schema 'kml22beta'.
- The element 'http://www.w3.org/2005/Atom:author' is missing.

If you would like more help, please type "xsd /".
8<-------------------------------------------------
This works when using the current 2.1 version of the KML Schema (kml21.xsd)

Relevant Application(s): 
xsd.exe (Tool from Microsoft to generate csharp code), from .NET, version 2 SDK

Steps to Reproduce: 
Use the current Google kml22beta.xsd XML Schema definition to generate csharp 
XML classes using the following command line: xsd.exe kml22beta.xsd /classes 
/language:CS /namespace:bfhmarcel.googleearth.kml22beta /out:kml22beta_cs

Reported By: marcel

Original issue reported on code.google.com by api.roman.public@gmail.com on 14 Aug 2008 at 10:51