12-28-04 10:49 PM
Solved it by setting the Root Reference property of the Schema node to one
of the root nodes. Wonder if this is the way to go though, but I couldn't
find any "class", "return" or similar.
"Richard Blewett [DevelopMentor]" <richardb@NOSPAMdevelop.com> wrote in
message news:u3ktHwA7EHA.3504@TK2MSFTNGP12.phx.gbl...
> Take a look at the RootNode TypeName property in the schema root node in
> question (this is the .NET type name that will be used for that root node)
> you'll probably find that ity is set to some reserved word like "class" or
> "return" or something similar. Change it to something else and it should
> compile OK. This will not affect your schema names, just the .NET
> rendering of types wrapping those schema.
>
> Regards
>
> Richard Blewett - DevelopMentor
> http://www.dotnetconsult.co.uk/weblog
> http://www.dotnetconsult.co.uk
>
> Hello, I have a small problem...
>
> I'm using BizTalk Server 2004 and I have received a DTD from our customer
> and I'm about to use it in BizTalk. I generated a schema from the DTD
> (Project -> Add generated items -> Generate schemas) and it worked well.
> However, when I compile the schema I get the following error:
>
> inquiry.xsd Node "customer-number" - Specify a valid .NET type name for
> this
> root node. The current .NET type name of this root node is invalid (it is
> a
> reserved BizTalk Keyword or is an invalid C# identifier).
> inquiry.xsd Node "item-number" - Specify a valid .NET type name for this
> root node. The current .NET type name of this root node is invalid (it is
> a
> reserved BizTalk Keyword or is an invalid C# identifier).
>
> Since I can't change the DTD or the names in the schema, how can I fix
> this
> error?
>
> Cheers,
> Chris
>
[ Post a follow-up to this message ]
|