BizTalk Server General - Generate schema from DTD problem

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > December 2004 > Generate schema from DTD problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Generate schema from DTD problem
Christoffer

2004-12-27, 7:46 am

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


Richard Blewett [DevelopMentor]

2004-12-27, 7:46 am

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. C
hange 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

Christoffer

2004-12-28, 5: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
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com