Solved

schema xmlns='http //www.w3.org/2001/xmlschema' was not expected

Posted on 2016-11-21
3
70 Views
Last Modified: 2016-11-21
Hi Experts,

      I am trying to create a C# class from an XSD using XSD.exe (VS2015) and I am getting the below error:

'schema xmlns='http //www.w3.org/2001/xmlschema' was not expected'

   Here's what I am using:

     xsd /classes /language:cs /out:C:\Classes /parameters:C:\ED_Address.xsd

Attached is the XSD.  Any help would be great!
ED_Address.xsd
0
Comment
Question by:axnst2
  • 2
3 Comments
 

Author Comment

by:axnst2
ID: 41896437
Is there anyone out there??
0
 
LVL 20

Accepted Solution

by:
Daniel Van Der Werken earned 500 total points
ID: 41896543
I downloaded your file and named it "testxsd.xsd" and ran this without any errors:

xsd testxsd.xsd /c

I got the following CS file
testxsd.cs
0
 

Author Closing Comment

by:axnst2
ID: 41896637
I just had to change my command line arguments per your answer to:

xsd C:\ED_Address.xsd /classes /language:cs /out:C:\Classes

Thank you!!!!!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question