Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xsd.exe and multiple includes

0 views
Skip to first unread message

Jeff

unread,
May 17, 2002, 11:44:52 AM5/17/02
to
Hello,

I am trying to use the xsd.exe command to create classes in
c#.

I have a question about using multple xsd's that have include
references to each other.

I have several xsd's with a relationship similar to below:


indentifcation.xsd is a stand alone xsd

currency.xsd contains include reference to identification.xsd and country.xsd

country.xsd contains include reference to identification.xsd

When I run xsd.exe /c /l:c# currency.xsd I get an error...

Schema validation warning: The complexType < (specific namespace info
referencing the identification.xsd )> has already been declared.

Any ideas?

Thanks and Regards,

Jxhans7

Jeff

unread,
May 17, 2002, 11:44:52 AM5/17/02
to

Dan Wahlin

unread,
May 17, 2002, 2:08:47 PM5/17/02
to
The following KB article my help:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q317490

Dan Wahlin

Microsoft MVP - ASP.NET
http://www.XMLforASP.NET

"Jeff" <jxh...@qwest.com> wrote in message
news:9ee7dd1e.02051...@posting.google.com...

Rajesh Natarajan

unread,
May 17, 2002, 9:56:51 PM5/17/02
to
Does xsd.exe understand the <xsd:import> tag?I keep getting "the
element <element name> is missing". Any suggestions

brad more

unread,
May 18, 2002, 12:50:41 PM5/18/02
to
Someone at MS does understand that this is a HUGE deal right?

I have spent weeks modelling some very complex messaging for use in an
upcoming enterprise app and the lack of validation that this bug introduces
presents a legit problem. Yes, I could go rewrite every schema to be self
contained, but that is BADLY missing the point and I don't have time.

Are there plans to address this in the near future?

r/brad more
sr. software engineer


"Dan Wahlin" <wah...@home.com> wrote in message
news:us2YH2c$BHA.2196@tkmsftngp04...

Joe Feser

unread,
May 18, 2002, 2:46:28 PM5/18/02
to
Why don't use call them up. You have support cases that come with your MSDN
subscription, plus if it is a bug, it's free.

Do you need a link for the number to call?

--
Joe Feser
Fesersoft
http://www.fesersoft.com/
.Net, XML, XSLT, SQL
Free Code, Articles and Information.


"brad more" <brad...@blackdogs.com> wrote in message
news:O7jAyvo$BHA.1660@tkmsftngp02...

brad more

unread,
May 20, 2002, 8:03:07 AM5/20/02
to
huh?

"Joe Feser" <nn...@fesersoft.com> wrote in message
news:OGQ9Rwp$BHA.1356@tkmsftngp05...

Dare Obasanjo

unread,
May 20, 2002, 12:31:21 PM5/20/02
to
"brad more" <brad...@blackdogs.com> wrote in message
news:O7jAyvo$BHA.1660@tkmsftngp02...
> Someone at MS does understand that this is a HUGE deal right?
>
> I have spent weeks modelling some very complex messaging for use in an
> upcoming enterprise app and the lack of validation that this bug
introduces
> presents a legit problem. Yes, I could go rewrite every schema to be self
> contained, but that is BADLY missing the point and I don't have time.
>
> Are there plans to address this in the near future?

The bug is a known issue which should be fixed in a future release.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation. All rights
reserved.


Christoph

unread,
May 20, 2002, 5:03:32 PM5/20/02
to
Yes, it does understand the <xs:import> tag but ignores the schemaLocation
attribute. Instead you need to specify all schema files on the command line.

HTH

--
Christoph Schittko
Software Architect
Mshow - a division of InterCall
"Rajesh Natarajan" <nataraj...@hotmail.com> wrote in message
news:e6ec6cfe.02051...@posting.google.com...

0 new messages