Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xsd schema to .net classes (xsd.exe)

225 views
Skip to first unread message

Stephen Travis

unread,
Aug 29, 2003, 7:56:11 AM8/29/03
to
Has anyone been able to generate .net classes from the OGC schemas
using xsd.exe? I've tried all of them from http://schemas.opengis.net/
and get the following error (although the class is created):

\gml\2.0.0> xsd.exe geometry.xsd /c /l:vb
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Schema validation warning:
Reference to undeclared attribute group
'http://www.w3.org/1999/xlink:simpleLink'.
An error occurred at file:///C:/geometry.xsd, (96, 6).

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

When I try to generate from the version 3.0.1 schema, the program
crashes.

gml\3.0.1>xsd.exe gml.xsd /c /l:vb
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights res

Warning: Schema could not be validated. Class generation may
incorrect results.
Exception of type System.StackOverflowException was thrown.

Andrew L

unread,
Aug 29, 2003, 9:33:55 AM8/29/03
to
Stephen Travis wrote:
> Has anyone been able to generate .net classes from the OGC schemas
> using xsd.exe? I've tried all of them from http://schemas.opengis.net/
> and get the following error (although the class is created):
>
><snip>

>
> Schema validation warning:
> Reference to undeclared attribute group
> 'http://www.w3.org/1999/xlink:simpleLink'.
> An error occurred at file:///C:/geometry.xsd, (96, 6).

Something to do with the fact that
http://www.w3.org/1999/xlink:simpleLink generates a 404?

0 new messages