473,406 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Unable to generate classes with XSD

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 /?".


Feb 10 '06 #1
2 2700
Are you using .NET 1.1 or .NET 2.0?
..NET 1.1 has some known problems processing VoiceXml Schemas.

"Chris Smedley" <ch***********@terracomputing.com> wrote in message
news:u6*************@tk2msftngp13.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 /?".

Feb 17 '06 #2
I am using .Net 2.0....Vs2005 RTM


"Zafar Abbas" <so*****@somewhere.com> wrote in message
news:Of****************@TK2MSFTNGP14.phx.gbl...
Are you using .NET 1.1 or .NET 2.0?
.NET 1.1 has some known problems processing VoiceXml Schemas.

"Chris Smedley" <ch***********@terracomputing.com> wrote in message
news:u6*************@tk2msftngp13.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 /?".


Feb 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Peter Gomis | last post by:
I have encountered a situation where I am unable to remove a .NET assembly from the GAC. The message I receive is "Assembly 'assemblyname' could not be uninstalled because it is required by other...
1
by: jtsree | last post by:
i am using Visual Studio.net professional 2003 (VisualBasic.net).I am building a very very simple project where i need to connect to Microsoft access database through OledbDataAdapter in design...
1
by: jtsree | last post by:
I am Using (Windows XP) Visual Studio.net 2003 professional edition working on VB.net language. I am bulding a very very simple project in VB.net where i connect to Access Database by dragging...
3
by: Susan Bricker | last post by:
Greetings. I have three forms that are open at the same time. They are related and cascading. The first form (frmEventAdd) is the anchor. Each event can have many Trials. The second form is...
4
by: Chris Bower | last post by:
Reposted from aspnet.buildingcontrols: Ok, I've got a bunch of derived controls that all have a property Rights of type Rights (Rights is an Enumerator). I wrote a custom TypeConverter so that I...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
1
by: A Traveler | last post by:
Hello, i am having this problem. The exact error message is: "Unable to generate code for a value of type 'System.Web.UI.Page'. This error occurred while trying to generate the property value for...
2
by: Shailja | last post by:
I read lots of stuff on MSDN relating to upgrading a COM Dll build using VB6 to VB.Net. Its seems to be a very easy task. As per few articles when we open vb6 application in .Net framework upgrade...
2
by: Nathan Wiegman | last post by:
Hi, I am using the XSD utility to generate schemas for some of the classes that we serialize in our project. Everything works fine and dandy until I try and create a schema for a class that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.