![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 /?". |
#3
| |||
| |||
|
|
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 /?". |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |