HighTechTalks DotNet Forums  

Unable to generate classes with XSD

Dotnet XML microsoft.public.dotnet.xml


Discuss Unable to generate classes with XSD in the Dotnet XML forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Chris Smedley
 
Posts: n/a

Default Unable to generate classes with XSD - 02-10-2006 , 10:47 AM






I am attempt to perform something that I thought should be quite simple...
I want to take the VoiceXML 2.0 or VoiceXML 2.1 XSD definitions and create
classes.

It appears that a number of items are not included in the definitions of
either version of VoiceXML and I find this unlikely.
For VoiceXML 2.0 I used
http://www.w3.org/TR/voicexml20/#dmlASchema

and downloaded the complete schema within a zip file:
http://www.w3.org/TR/voicexml20/vxml-schema.zip

For Version 2.1 it was a similar process and it also did not work... since
the date of 2.1 is June of 2005, I would expect that any teething pains
would have been addressed with the format

http://www.w3.org/TR/voicexml21/#sec-schema
http://www.w3.org/TR/voicexml21/vxml-schema.zip



I know the folks here ( in the MSFT forum) would suggest this is not an
MSFT issue, but in order to do my development, I would like to use VS...and
I would think it would work. What am I missing... the actual "complex types
erros " I think is a red herring...

Is there something missing in the defination or a compatibility problem? I
would not think that a w3C standard could not be easily converted to
classes.

Anyone have any success converting this into classes? (Ideally Vb.net or C#)

Any suggestions on the right place to post if this is not the correct forum?

Thanks for all your help in advance





XSd output as shown:

P:\schema>xsd vxml.xsd /classes /l:vb

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: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:speak' to redefine. Line 28, position
7.
Schema validation warning: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:say-as' to redefine. Line 30, position
10.
Schema validation warning: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:audio' to redefine. Line 43, position
10.
Schema validation warning: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:mark' to redefine. Line 55, position 1
0.
Schema validation warning: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:speak' to redefine. Line 67, position
7.

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

Error: Error generating classes for schema 'vxml'.
- Schema with targetNamespace='http://www.w3.org/2001/vxml' has invalid
syntax. Cannot find a <complexType> with name 'http://www.
w3.org/2001/vxml:speak' to redefine. Line 28, position 7.
- Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:speak' to redefine.

If you would like more help, please type "xsd /?".





Reply With Quote
  #2  
Old   
Zafar Abbas
 
Posts: n/a

Default Re: Unable to generate classes with XSD - 02-17-2006 , 10:47 AM






Are you using .NET 1.1 or .NET 2.0?
..NET 1.1 has some known problems processing VoiceXml Schemas.

"Chris Smedley" <chris.smedley (AT) terracomputing (DOT) com> wrote

Quote:
I am attempt to perform something that I thought should be quite simple...
I want to take the VoiceXML 2.0 or VoiceXML 2.1 XSD definitions and create
classes.

It appears that a number of items are not included in the definitions of
either version of VoiceXML and I find this unlikely.
For VoiceXML 2.0 I used
http://www.w3.org/TR/voicexml20/#dmlASchema

and downloaded the complete schema within a zip file:
http://www.w3.org/TR/voicexml20/vxml-schema.zip

For Version 2.1 it was a similar process and it also did not work... since
the date of 2.1 is June of 2005, I would expect that any teething pains
would have been addressed with the format

http://www.w3.org/TR/voicexml21/#sec-schema
http://www.w3.org/TR/voicexml21/vxml-schema.zip



I know the folks here ( in the MSFT forum) would suggest this is not an
MSFT issue, but in order to do my development, I would like to use
VS...and
I would think it would work. What am I missing... the actual "complex
types
erros " I think is a red herring...

Is there something missing in the defination or a compatibility problem? I
would not think that a w3C standard could not be easily converted to
classes.

Anyone have any success converting this into classes? (Ideally Vb.net or
C#)

Any suggestions on the right place to post if this is not the correct
forum?

Thanks for all your help in advance





XSd output as shown:

P:\schema>xsd vxml.xsd /classes /l:vb

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: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:speak' to redefine. Line 28, position
7.
Schema validation warning: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:say-as' to redefine. Line 30, position
10.
Schema validation warning: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:audio' to redefine. Line 43, position
10.
Schema validation warning: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:mark' to redefine. Line 55, position 1
0.
Schema validation warning: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:speak' to redefine. Line 67, position
7.

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

Error: Error generating classes for schema 'vxml'.
- Schema with targetNamespace='http://www.w3.org/2001/vxml' has invalid
syntax. Cannot find a <complexType> with name 'http://www.
w3.org/2001/vxml:speak' to redefine. Line 28, position 7.
- Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:speak' to redefine.

If you would like more help, please type "xsd /?".







Reply With Quote
  #3  
Old   
Chris Smedley
 
Posts: n/a

Default Re: Unable to generate classes with XSD - 02-21-2006 , 07:34 AM



I am using .Net 2.0....Vs2005 RTM




"Zafar Abbas" <someone (AT) somewhere (DOT) com> wrote

Quote:
Are you using .NET 1.1 or .NET 2.0?
.NET 1.1 has some known problems processing VoiceXml Schemas.

"Chris Smedley" <chris.smedley (AT) terracomputing (DOT) com> wrote in message
news:u6xw8GmLGHA.984 (AT) tk2msftngp13 (DOT) phx.gbl...
I am attempt to perform something that I thought should be quite
simple...
I want to take the VoiceXML 2.0 or VoiceXML 2.1 XSD definitions and
create
classes.

It appears that a number of items are not included in the definitions of
either version of VoiceXML and I find this unlikely.
For VoiceXML 2.0 I used
http://www.w3.org/TR/voicexml20/#dmlASchema

and downloaded the complete schema within a zip file:
http://www.w3.org/TR/voicexml20/vxml-schema.zip

For Version 2.1 it was a similar process and it also did not work...
since
the date of 2.1 is June of 2005, I would expect that any teething pains
would have been addressed with the format

http://www.w3.org/TR/voicexml21/#sec-schema
http://www.w3.org/TR/voicexml21/vxml-schema.zip



I know the folks here ( in the MSFT forum) would suggest this is not an
MSFT issue, but in order to do my development, I would like to use
VS...and
I would think it would work. What am I missing... the actual "complex
types
erros " I think is a red herring...

Is there something missing in the defination or a compatibility problem?
I
would not think that a w3C standard could not be easily converted to
classes.

Anyone have any success converting this into classes? (Ideally Vb.net or
C#)

Any suggestions on the right place to post if this is not the correct
forum?

Thanks for all your help in advance





XSd output as shown:

P:\schema>xsd vxml.xsd /classes /l:vb

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: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:speak' to redefine. Line 28, position
7.
Schema validation warning: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:say-as' to redefine. Line 30, position
10.
Schema validation warning: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:audio' to redefine. Line 43, position
10.
Schema validation warning: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:mark' to redefine. Line 55, position 1
0.
Schema validation warning: Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:speak' to redefine. Line 67, position
7.

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

Error: Error generating classes for schema 'vxml'.
- Schema with targetNamespace='http://www.w3.org/2001/vxml' has invalid
syntax. Cannot find a <complexType> with name 'http://www.
w3.org/2001/vxml:speak' to redefine. Line 28, position 7.
- Cannot find a <complexType> with name
'http://www.w3.org/2001/vxml:speak' to redefine.

If you would like more help, please type "xsd /?".









Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.