Generate schema from DTD problem
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > Generate schema from DTD problem




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Generate schema from DTD problem  
Christoffer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-27-04 12:46 PM

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 ]



    Re: Generate schema from DTD problem  
Richard Blewett [DevelopMentor]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-27-04 12:46 PM

Take a look at the RootNode TypeName property in the schema root node in que
stion (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 "retu
rn" or something similar. C
hange it to something else and it should compile OK. This will not affect yo
ur 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 ]



    Re: Generate schema from DTD problem  
Christoffer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:22 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register