Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2016-11-21
3
Medium Priority
?
131 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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

783 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